Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Feb 18, 2024
1 parent f25900b commit b4a5817
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,20 @@

declare(strict_types=1);

namespace PHPStanCakePHP2;
namespace PHPStanCakePHP2\ClassMethodExtension;

use Exception;
use PHPStan\Reflection\ClassReflection;
use PHPStan\Reflection\MethodReflection;
use PHPStan\Reflection\MethodsClassReflectionExtension;
use PHPStan\Reflection\ReflectionProvider;
use PHPStanCakePHP2\ModelBehaviorMethodExtractor;
use PHPStanCakePHP2\Reflection\ClassReflectionFinder;

/**
* Adds methods to {@link Model}s from {@link ModelBehavior} classes.
*/
final class ModelBehaviorsExtension implements MethodsClassReflectionExtension
final class ModelMethodExtension implements MethodsClassReflectionExtension
{
private ReflectionProvider $reflectionProvider;

Expand Down
1 change: 1 addition & 0 deletions src/ModelBehaviorMethodExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use PHPStan\Reflection\ParameterReflection;
use PHPStan\Reflection\ParametersAcceptor;
use PHPStan\Type\ObjectType;
use PHPStanCakePHP2\Reflection\ModelBehaviorMethodWrapper;

final class ModelBehaviorMethodExtractor
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace PHPStanCakePHP2;
namespace PHPStanCakePHP2\Reflection;

use PHPStan\Reflection\ClassMemberReflection;
use PHPStan\Reflection\ClassReflection;
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/ControllerExtensionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use PHPStan\Testing\TypeInferenceTestCase;
use PHPUnit\Framework\Attributes\DataProvider;

class ControllerExtensionsTest extends TypeInferenceTestCase
final class ControllerExtensionsTest extends TypeInferenceTestCase
{
/**
* @return mixed[]
Expand Down
27 changes: 0 additions & 27 deletions tests/Feature/LoadComponentOnFlyMethodReturnTypeExtensionTest.php

This file was deleted.

10 changes: 0 additions & 10 deletions tests/Feature/data/loading_component_loaded_on_fly.php

This file was deleted.

0 comments on commit b4a5817

Please sign in to comment.