Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into singleton-interface
Browse files Browse the repository at this point in the history
  • Loading branch information
msmakouz committed Jan 11, 2024
2 parents 5e4ada3 + fb8a19f commit e1fa3d2
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
4 changes: 4 additions & 0 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
declare(strict_types=1);

use Rector\Config\RectorConfig;
use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPrivateMethodParameterRector;
use Rector\DeadCode\Rector\Property\RemoveUnusedPrivatePropertyRector;
use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPrivateMethodRector;
use Rector\DeadCode\Rector\If_\RemoveAlwaysTrueIfConditionRector;
Expand Down Expand Up @@ -51,6 +52,9 @@
RemoveExtraParametersRector::class => [
__DIR__ . '/src/Boot/src/BootloadManager/AbstractBootloadManager.php',
],
RemoveUnusedPrivateMethodParameterRector::class => [
__DIR__ . '/src/Core/src/Internal/Factory.php',
],
]);

$config->import(LevelSetList::UP_TO_PHP_72);
Expand Down
2 changes: 1 addition & 1 deletion src/Boot/src/BootloadManager/Initializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function __construct(
/**
* Instantiate bootloader objects and resolve dependencies
*
* @param TClass[]|array<TClass, array<string,mixed>> $classes
* @param TClass[]|array<class-string<BootloaderInterface>, array<string,mixed>> $classes
*/
public function init(array $classes, bool $useConfig = true): \Generator
{
Expand Down
3 changes: 2 additions & 1 deletion src/Boot/src/BootloadManager/InitializerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Spiral\Boot\BootloadManager;

use Spiral\Boot\Bootloader\BootloaderInterface;
use Spiral\Boot\BootloadManagerInterface;

/**
Expand All @@ -14,7 +15,7 @@ interface InitializerInterface
/**
* Instantiate bootloader objects and resolve dependencies
*
* @param TClass[]|array<TClass, array<string,mixed>> $classes
* @param TClass[]|array<class-string<BootloaderInterface>, array<string,mixed>> $classes
*/
public function init(array $classes): \Generator;

Expand Down
2 changes: 1 addition & 1 deletion src/Console/src/Configurator/Attribute/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ private function getPropertyType(\ReflectionProperty $property): \ReflectionName
}
}

if (!$type->isBuiltin() && \enum_exists($type->getName())) {
if ($type instanceof \ReflectionNamedType && !$type->isBuiltin() && \enum_exists($type->getName())) {
return $type;
}

Expand Down
4 changes: 0 additions & 4 deletions src/Core/src/Attribute/Proxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,4 @@ final class Proxy implements Plugin
* @internal
*/
public bool $proxyOverloads = false;

public function __construct(
) {
}
}

0 comments on commit e1fa3d2

Please sign in to comment.