Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
use Rector\TypeDeclaration\Rector\Closure\AddClosureVoidReturnTypeWhereNoReturnRector;
use Rector\TypeDeclaration\Rector\Empty_\EmptyOnNullableObjectToInstanceOfRector;
use Rector\TypeDeclaration\Rector\Function_\AddFunctionVoidReturnTypeWhereNoReturnRector;
use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromAssignsRector;
use Rector\TypeDeclaration\Rector\StmtsAwareInterface\DeclareStrictTypesRector;
use Utils\Rector\PassStrictParameterToFunctionParameterRector;
use Utils\Rector\RemoveErrorSuppressInTryCatchStmtsRector;
Expand Down Expand Up @@ -215,6 +216,7 @@
AddClosureVoidReturnTypeWhereNoReturnRector::class,
AddFunctionVoidReturnTypeWhereNoReturnRector::class,
AddMethodCallBasedStrictParamTypeRector::class,
TypedPropertyFromAssignsRector::class,
])
->withConfiguredRule(StringClassNameToClassConstantRector::class, [
// keep '\\' prefix string on string '\Foo\Bar'
Expand Down
8 changes: 4 additions & 4 deletions system/Config/Factories.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ final class Factories
*
* @var array<string, array<string, bool|string|null>>
*/
private static $options = [];
private static array $options = [];

/**
* Explicit options for the Config
Expand Down Expand Up @@ -65,7 +65,7 @@ final class Factories
*
* @var array<string, array<string, class-string>>
*/
private static $aliases = [];
private static array $aliases = [];

/**
* Store for instances of any component that
Expand All @@ -78,7 +78,7 @@ final class Factories
*
* @var array<string, array<class-string, object>>
*/
private static $instances = [];
private static array $instances = [];

/**
* Whether the component instances are updated?
Expand All @@ -87,7 +87,7 @@ final class Factories
*
* @internal For caching only
*/
private static $updated = [];
private static array $updated = [];

/**
* Define the class to load. You can *override* the concrete class.
Expand Down
Loading