Updated Rector to commit 8cf4340f3e9ace06e20827147e1065cfd5182efa

8cf4340f3e [TypeDeclaration] Handle crash on @mixin usage on ReturnTypeFromStrictTypedCallRector (#5823)
This commit is contained in:
Tomas Votruba 2024-04-17 08:35:57 +00:00
parent f3e4fee4bc
commit ea0464beb9
3 changed files with 9 additions and 3 deletions

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api * @api
* @var string * @var string
*/ */
public const PACKAGE_VERSION = '2b811afb584aa7a3c569a2ce23d78edbf126d556'; public const PACKAGE_VERSION = '8cf4340f3e9ace06e20827147e1065cfd5182efa';
/** /**
* @api * @api
* @var string * @var string
*/ */
public const RELEASE_DATE = '2024-04-15 19:25:17'; public const RELEASE_DATE = '2024-04-17 15:33:21';
/** /**
* @var int * @var int
*/ */

View File

@ -348,6 +348,12 @@ final class LazyContainerFactory
$rectorConfig->afterResolving(NameScopeFactory::class, static function (NameScopeFactory $nameScopeFactory, Container $container) : void { $rectorConfig->afterResolving(NameScopeFactory::class, static function (NameScopeFactory $nameScopeFactory, Container $container) : void {
$nameScopeFactory->autowire($container->make(PhpDocInfoFactory::class), $container->make(StaticTypeMapper::class)); $nameScopeFactory->autowire($container->make(PhpDocInfoFactory::class), $container->make(StaticTypeMapper::class));
}); });
$rectorConfig->afterResolving(TypeMapperInterface::class, static function (TypeMapperInterface $typeMapper, Container $container) : void {
if (!\method_exists($typeMapper, 'autowire')) {
return;
}
$typeMapper->autowire($container->make(PHPStanStaticTypeMapper::class));
});
$rectorConfig->afterResolving(ArrayTypeMapper::class, static function (ArrayTypeMapper $arrayTypeMapper, Container $container) : void { $rectorConfig->afterResolving(ArrayTypeMapper::class, static function (ArrayTypeMapper $arrayTypeMapper, Container $container) : void {
$arrayTypeMapper->autowire($container->make(PHPStanStaticTypeMapper::class)); $arrayTypeMapper->autowire($container->make(PHPStanStaticTypeMapper::class));
}); });

View File

@ -14,7 +14,7 @@ $loader = (static function () {
// Restore the backup and ensure the excluded files are properly marked as loaded // Restore the backup and ensure the excluded files are properly marked as loaded
$GLOBALS['__composer_autoload_files'] = \array_merge( $GLOBALS['__composer_autoload_files'] = \array_merge(
$existingComposerAutoloadFiles, $existingComposerAutoloadFiles,
\array_fill_keys(['0e6d7bf4a5811bfa5cf40c5ccd6fae6a', '5928a00fa978807cf85d90ec3f4b0147'], true) \array_fill_keys(['5928a00fa978807cf85d90ec3f4b0147', '0e6d7bf4a5811bfa5cf40c5ccd6fae6a'], true)
); );
return $loader; return $loader;