Skip to content

Commit

Permalink
Updated Rector to commit 079cd5116ab16585e9b656ad7cd6eef8417137ef
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Jul 23, 2023
1 parent 6ce5f37 commit 94b9794
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 26 deletions.
12 changes: 6 additions & 6 deletions packages/PHPStanStaticTypeMapper/DoctrineTypeAnalyzer.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,18 @@ public function isDoctrineCollectionWithIterableUnionType(Type $type) : bool
}
return $arrayType instanceof ArrayType;
}
private function isCollectionObjectType(Type $type) : bool
public function isInstanceOfCollectionType(Type $type) : bool
{
if (!$type instanceof TypeWithClassName) {
if (!$type instanceof ObjectType) {
return \false;
}
return $type->getClassName() === 'Doctrine\\Common\\Collections\\Collection';
return $type->isInstanceOf('Doctrine\\Common\\Collections\\Collection')->yes();
}
public function isInstanceOfCollectionType(Type $type) : bool
private function isCollectionObjectType(Type $type) : bool
{
if (!$type instanceof ObjectType) {
if (!$type instanceof TypeWithClassName) {
return \false;
}
return $type->isInstanceOf('Doctrine\\Common\\Collections\\Collection')->yes();
return $type->getClassName() === 'Doctrine\\Common\\Collections\\Collection';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,14 @@
namespace Rector\TypeDeclaration\Rector\Property;

use PhpParser\Node;
use PhpParser\Node\Expr;
use PhpParser\Node\Stmt\Class_;
use PhpParser\Node\Stmt\ClassMethod;
use PhpParser\Node\Stmt\Property;
use PhpParser\Node\Stmt\PropertyProperty;
use PHPStan\Analyser\Scope;
use PHPStan\Reflection\ClassReflection;
use PHPStan\Reflection\Php\PhpPropertyReflection;
use PHPStan\Type\MixedType;
use PHPStan\Type\ObjectType;
use PHPStan\Type\Type;
use Rector\BetterPhpDocParser\PhpDocManipulator\PhpDocTypeChanger;
use Rector\Core\Rector\AbstractRector;
use Rector\Core\Rector\AbstractScopeAwareRector;
use Rector\Core\Reflection\ReflectionResolver;
use Rector\Core\ValueObject\MethodName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,10 @@
namespace Rector\TypeDeclaration\Rector\Property;

use PhpParser\Node;
use PhpParser\Node\Expr;
use PhpParser\Node\Stmt\Class_;
use PhpParser\Node\Stmt\ClassMethod;
use PhpParser\Node\Stmt\PropertyProperty;
use PHPStan\Reflection\ClassReflection;
use PHPStan\Type\MixedType;
use PHPStan\Type\ObjectType;
use PHPStan\Type\Type;
use Rector\BetterPhpDocParser\PhpDocManipulator\PhpDocTypeChanger;
use Rector\Core\Rector\AbstractRector;
Expand Down
4 changes: 2 additions & 2 deletions src/Application/VersionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '2afa47cd68086b61cb2363bcfb5553eb8767b50c';
public const PACKAGE_VERSION = '079cd5116ab16585e9b656ad7cd6eef8417137ef';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-07-23 17:10:16';
public const RELEASE_DATE = '2023-07-23 18:18:03';
/**
* @var int
*/
Expand Down
2 changes: 1 addition & 1 deletion vendor/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInit824bd8621e72888629f212d328a62f9a::getLoader();
return ComposerAutoloaderInit6b71eb074528dbe72b165cc55711cf9c::getLoader();
10 changes: 5 additions & 5 deletions vendor/composer/autoload_real.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// autoload_real.php @generated by Composer

class ComposerAutoloaderInit824bd8621e72888629f212d328a62f9a
class ComposerAutoloaderInit6b71eb074528dbe72b165cc55711cf9c
{
private static $loader;

Expand All @@ -22,17 +22,17 @@ public static function getLoader()
return self::$loader;
}

spl_autoload_register(array('ComposerAutoloaderInit824bd8621e72888629f212d328a62f9a', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit6b71eb074528dbe72b165cc55711cf9c', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit824bd8621e72888629f212d328a62f9a', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit6b71eb074528dbe72b165cc55711cf9c', 'loadClassLoader'));

require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit824bd8621e72888629f212d328a62f9a::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit6b71eb074528dbe72b165cc55711cf9c::getInitializer($loader));

$loader->setClassMapAuthoritative(true);
$loader->register(true);

$filesToLoad = \Composer\Autoload\ComposerStaticInit824bd8621e72888629f212d328a62f9a::$files;
$filesToLoad = \Composer\Autoload\ComposerStaticInit6b71eb074528dbe72b165cc55711cf9c::$files;
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
Expand Down
8 changes: 4 additions & 4 deletions vendor/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Composer\Autoload;

class ComposerStaticInit824bd8621e72888629f212d328a62f9a
class ComposerStaticInit6b71eb074528dbe72b165cc55711cf9c
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
Expand Down Expand Up @@ -3022,9 +3022,9 @@ class ComposerStaticInit824bd8621e72888629f212d328a62f9a
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit824bd8621e72888629f212d328a62f9a::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit824bd8621e72888629f212d328a62f9a::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit824bd8621e72888629f212d328a62f9a::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit6b71eb074528dbe72b165cc55711cf9c::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit6b71eb074528dbe72b165cc55711cf9c::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit6b71eb074528dbe72b165cc55711cf9c::$classMap;

}, null, ClassLoader::class);
}
Expand Down

0 comments on commit 94b9794

Please sign in to comment.