Skip to content

Commit

Permalink
Updated Rector to commit 29dc5843a88dfec821312c9e2d1725e9cc57b9e2
Browse files Browse the repository at this point in the history
rectorphp/rector-src@29dc584 Add float mul integer type to NumericReturnTypeFromStrictScalarReturnsRector (#4376)
  • Loading branch information
TomasVotruba committed Jun 29, 2023
1 parent b8f72ff commit 107ce57
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,16 @@ private function refactorBinaryOp(BinaryOp $binaryOp, $functionLike)
$functionLike->returnType = new Identifier('float');
return $functionLike;
}
if ($binaryOp instanceof Mul) {
if ($leftType instanceof FloatType && $rightType instanceof IntegerType) {
$functionLike->returnType = new Identifier('float');
return $functionLike;
}
if ($leftType instanceof IntegerType && $rightType instanceof FloatType) {
$functionLike->returnType = new Identifier('float');
return $functionLike;
}
}
return null;
}
}
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 = '0.17.2';
public const PACKAGE_VERSION = '29dc5843a88dfec821312c9e2d1725e9cc57b9e2';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-06-29 11:59:41';
public const RELEASE_DATE = '2023-06-29 15:52:12';
/**
* @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 ComposerAutoloaderInit39b19c6ab9850e9aad688cf1739f1ff6::getLoader();
return ComposerAutoloaderInit0c8e28dd4c553e4c886bf58c80229b8a::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 ComposerAutoloaderInit39b19c6ab9850e9aad688cf1739f1ff6
class ComposerAutoloaderInit0c8e28dd4c553e4c886bf58c80229b8a
{
private static $loader;

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

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

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

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

$filesToLoad = \Composer\Autoload\ComposerStaticInit39b19c6ab9850e9aad688cf1739f1ff6::$files;
$filesToLoad = \Composer\Autoload\ComposerStaticInit0c8e28dd4c553e4c886bf58c80229b8a::$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 ComposerStaticInit39b19c6ab9850e9aad688cf1739f1ff6
class ComposerStaticInit0c8e28dd4c553e4c886bf58c80229b8a
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
Expand Down Expand Up @@ -3098,9 +3098,9 @@ class ComposerStaticInit39b19c6ab9850e9aad688cf1739f1ff6
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit39b19c6ab9850e9aad688cf1739f1ff6::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit39b19c6ab9850e9aad688cf1739f1ff6::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit39b19c6ab9850e9aad688cf1739f1ff6::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit0c8e28dd4c553e4c886bf58c80229b8a::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit0c8e28dd4c553e4c886bf58c80229b8a::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit0c8e28dd4c553e4c886bf58c80229b8a::$classMap;

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

0 comments on commit 107ce57

Please sign in to comment.