Skip to content

Commit

Permalink
Updated Rector to commit 34c3e8f
Browse files Browse the repository at this point in the history
rectorphp/rector-src@34c3e8f [TypeDeclaration] Handle (object) cast on CompleteVarDocTypePropertyRector (#503)
  • Loading branch information
TomasVotruba committed Jul 25, 2021
1 parent 3f2ea1e commit c141cde
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@
use PhpParser\Node\Expr\Cast\Bool_;
use PhpParser\Node\Expr\Cast\Double;
use PhpParser\Node\Expr\Cast\Int_;
use PhpParser\Node\Expr\Cast\Object_;
use PhpParser\Node\Expr\Cast\String_;
use PHPStan\Type\ArrayType;
use PHPStan\Type\BooleanType;
use PHPStan\Type\FloatType;
use PHPStan\Type\IntegerType;
use PHPStan\Type\MixedType;
use PHPStan\Type\ObjectType;
use PHPStan\Type\StringType;
use PHPStan\Type\Type;
use Rector\Core\Exception\NotImplementedYetException;
Expand Down Expand Up @@ -45,6 +47,9 @@ public function resolve($node) : \PHPStan\Type\Type
if ($node instanceof \PhpParser\Node\Expr\Cast\Array_) {
return new \PHPStan\Type\ArrayType(new \PHPStan\Type\MixedType(), new \PHPStan\Type\MixedType());
}
if ($node instanceof \PhpParser\Node\Expr\Cast\Object_) {
return new \PHPStan\Type\ObjectType('stdClass');
}
throw new \Rector\Core\Exception\NotImplementedYetException(\get_class($node));
}
}
4 changes: 2 additions & 2 deletions src/Application/VersionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ final class VersionResolver
/**
* @var string
*/
public const PACKAGE_VERSION = 'dfbd366b74df51ca25f509c779499cd9978b5045';
public const PACKAGE_VERSION = '34c3e8fce9249c87666ac525aa8fb889d443beca';
/**
* @var string
*/
public const RELEASE_DATE = '2021-07-25 13:02:20';
public const RELEASE_DATE = '2021-07-25 13:30:32';
public static function resolvePackageVersion() : string
{
$process = new \RectorPrefix20210725\Symfony\Component\Process\Process(['git', 'log', '--pretty="%H"', '-n1', 'HEAD'], __DIR__);
Expand Down
2 changes: 1 addition & 1 deletion vendor/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

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

return ComposerAutoloaderInit0b545e1c5b74b2be4e69c2aeec79bbc2::getLoader();
return ComposerAutoloaderInit95a007e404fab23ae4b75f295f43eb65::getLoader();
14 changes: 7 additions & 7 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 ComposerAutoloaderInit0b545e1c5b74b2be4e69c2aeec79bbc2
class ComposerAutoloaderInit95a007e404fab23ae4b75f295f43eb65
{
private static $loader;

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

spl_autoload_register(array('ComposerAutoloaderInit0b545e1c5b74b2be4e69c2aeec79bbc2', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit95a007e404fab23ae4b75f295f43eb65', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
spl_autoload_unregister(array('ComposerAutoloaderInit0b545e1c5b74b2be4e69c2aeec79bbc2', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit95a007e404fab23ae4b75f295f43eb65', 'loadClassLoader'));

$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
if ($useStaticLoader) {
require __DIR__ . '/autoload_static.php';

call_user_func(\Composer\Autoload\ComposerStaticInit0b545e1c5b74b2be4e69c2aeec79bbc2::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit95a007e404fab23ae4b75f295f43eb65::getInitializer($loader));
} else {
$classMap = require __DIR__ . '/autoload_classmap.php';
if ($classMap) {
Expand All @@ -42,19 +42,19 @@ public static function getLoader()
$loader->register(true);

if ($useStaticLoader) {
$includeFiles = Composer\Autoload\ComposerStaticInit0b545e1c5b74b2be4e69c2aeec79bbc2::$files;
$includeFiles = Composer\Autoload\ComposerStaticInit95a007e404fab23ae4b75f295f43eb65::$files;
} else {
$includeFiles = require __DIR__ . '/autoload_files.php';
}
foreach ($includeFiles as $fileIdentifier => $file) {
composerRequire0b545e1c5b74b2be4e69c2aeec79bbc2($fileIdentifier, $file);
composerRequire95a007e404fab23ae4b75f295f43eb65($fileIdentifier, $file);
}

return $loader;
}
}

function composerRequire0b545e1c5b74b2be4e69c2aeec79bbc2($fileIdentifier, $file)
function composerRequire95a007e404fab23ae4b75f295f43eb65($fileIdentifier, $file)
{
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
require $file;
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 ComposerStaticInit0b545e1c5b74b2be4e69c2aeec79bbc2
class ComposerStaticInit95a007e404fab23ae4b75f295f43eb65
{
public static $files = array (
'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php',
Expand Down Expand Up @@ -3852,9 +3852,9 @@ class ComposerStaticInit0b545e1c5b74b2be4e69c2aeec79bbc2
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit0b545e1c5b74b2be4e69c2aeec79bbc2::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit0b545e1c5b74b2be4e69c2aeec79bbc2::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit0b545e1c5b74b2be4e69c2aeec79bbc2::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit95a007e404fab23ae4b75f295f43eb65::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit95a007e404fab23ae4b75f295f43eb65::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit95a007e404fab23ae4b75f295f43eb65::$classMap;

}, null, ClassLoader::class);
}
Expand Down
2 changes: 1 addition & 1 deletion vendor/composer/installed.php

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions vendor/scoper-autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
if (!class_exists('AutoloadIncluder', false) && !interface_exists('AutoloadIncluder', false) && !trait_exists('AutoloadIncluder', false)) {
spl_autoload_call('RectorPrefix20210725\AutoloadIncluder');
}
if (!class_exists('ComposerAutoloaderInit0b545e1c5b74b2be4e69c2aeec79bbc2', false) && !interface_exists('ComposerAutoloaderInit0b545e1c5b74b2be4e69c2aeec79bbc2', false) && !trait_exists('ComposerAutoloaderInit0b545e1c5b74b2be4e69c2aeec79bbc2', false)) {
spl_autoload_call('RectorPrefix20210725\ComposerAutoloaderInit0b545e1c5b74b2be4e69c2aeec79bbc2');
if (!class_exists('ComposerAutoloaderInit95a007e404fab23ae4b75f295f43eb65', false) && !interface_exists('ComposerAutoloaderInit95a007e404fab23ae4b75f295f43eb65', false) && !trait_exists('ComposerAutoloaderInit95a007e404fab23ae4b75f295f43eb65', false)) {
spl_autoload_call('RectorPrefix20210725\ComposerAutoloaderInit95a007e404fab23ae4b75f295f43eb65');
}
if (!class_exists('Doctrine\Inflector\Inflector', false) && !interface_exists('Doctrine\Inflector\Inflector', false) && !trait_exists('Doctrine\Inflector\Inflector', false)) {
spl_autoload_call('RectorPrefix20210725\Doctrine\Inflector\Inflector');
Expand Down Expand Up @@ -3308,9 +3308,9 @@ function print_node() {
return \RectorPrefix20210725\print_node(...func_get_args());
}
}
if (!function_exists('composerRequire0b545e1c5b74b2be4e69c2aeec79bbc2')) {
function composerRequire0b545e1c5b74b2be4e69c2aeec79bbc2() {
return \RectorPrefix20210725\composerRequire0b545e1c5b74b2be4e69c2aeec79bbc2(...func_get_args());
if (!function_exists('composerRequire95a007e404fab23ae4b75f295f43eb65')) {
function composerRequire95a007e404fab23ae4b75f295f43eb65() {
return \RectorPrefix20210725\composerRequire95a007e404fab23ae4b75f295f43eb65(...func_get_args());
}
}
if (!function_exists('parseArgs')) {
Expand Down

0 comments on commit c141cde

Please sign in to comment.