mirror of
https://github.com/rectorphp/rector.git
synced 2025-04-14 12:32:00 +02:00
Updated Rector to commit 49f24735886a9aa8025b12a4cf196f81b6ea3272
49f2473588
[automated] Re-Generate Nodes/Rectors Documentation (#4620)
This commit is contained in:
parent
385e4e9ffe
commit
e81ca74f2e
@ -1,4 +1,4 @@
|
||||
# 362 Rules Overview
|
||||
# 363 Rules Overview
|
||||
|
||||
<br>
|
||||
|
||||
@ -52,7 +52,7 @@
|
||||
|
||||
- [Transform](#transform) (22)
|
||||
|
||||
- [TypeDeclaration](#typedeclaration) (43)
|
||||
- [TypeDeclaration](#typedeclaration) (44)
|
||||
|
||||
- [Visibility](#visibility) (3)
|
||||
|
||||
@ -8266,6 +8266,30 @@ return static function (RectorConfig $rectorConfig): void {
|
||||
|
||||
<br>
|
||||
|
||||
### TypedPropertyFromStrictConstructorReadonlyClassRector
|
||||
|
||||
Add typed public properties based only on strict constructor types in readonly classes
|
||||
|
||||
- class: [`Rector\TypeDeclaration\Rector\Property\TypedPropertyFromStrictConstructorReadonlyClassRector`](../rules/TypeDeclaration/Rector/Property/TypedPropertyFromStrictConstructorReadonlyClassRector.php)
|
||||
|
||||
```diff
|
||||
/**
|
||||
* @immutable
|
||||
*/
|
||||
class SomeObject
|
||||
{
|
||||
- public $name;
|
||||
+ public string $name;
|
||||
|
||||
public function __construct(string $name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
<br>
|
||||
|
||||
### TypedPropertyFromStrictConstructorRector
|
||||
|
||||
Add typed properties based only on strict constructor types
|
||||
|
@ -19,12 +19,12 @@ final class VersionResolver
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '0ac9ebc3ae49c1e08f5c40e6fde9cfa1c16f6a81';
|
||||
public const PACKAGE_VERSION = '49f24735886a9aa8025b12a4cf196f81b6ea3272';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2023-07-29 18:44:30';
|
||||
public const RELEASE_DATE = '2023-07-30 00:27:57';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInitbce00438c4d048c711efd83486ea6ef8::getLoader();
|
||||
return ComposerAutoloaderInitb4aee6e8336bb98297e30a7ab247a210::getLoader();
|
||||
|
10
vendor/composer/autoload_real.php
vendored
10
vendor/composer/autoload_real.php
vendored
@ -2,7 +2,7 @@
|
||||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInitbce00438c4d048c711efd83486ea6ef8
|
||||
class ComposerAutoloaderInitb4aee6e8336bb98297e30a7ab247a210
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -22,17 +22,17 @@ class ComposerAutoloaderInitbce00438c4d048c711efd83486ea6ef8
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInitbce00438c4d048c711efd83486ea6ef8', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInitb4aee6e8336bb98297e30a7ab247a210', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInitbce00438c4d048c711efd83486ea6ef8', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInitb4aee6e8336bb98297e30a7ab247a210', 'loadClassLoader'));
|
||||
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInitbce00438c4d048c711efd83486ea6ef8::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInitb4aee6e8336bb98297e30a7ab247a210::getInitializer($loader));
|
||||
|
||||
$loader->setClassMapAuthoritative(true);
|
||||
$loader->register(true);
|
||||
|
||||
$filesToLoad = \Composer\Autoload\ComposerStaticInitbce00438c4d048c711efd83486ea6ef8::$files;
|
||||
$filesToLoad = \Composer\Autoload\ComposerStaticInitb4aee6e8336bb98297e30a7ab247a210::$files;
|
||||
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
||||
|
8
vendor/composer/autoload_static.php
vendored
8
vendor/composer/autoload_static.php
vendored
@ -4,7 +4,7 @@
|
||||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInitbce00438c4d048c711efd83486ea6ef8
|
||||
class ComposerStaticInitb4aee6e8336bb98297e30a7ab247a210
|
||||
{
|
||||
public static $files = array (
|
||||
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
|
||||
@ -3023,9 +3023,9 @@ class ComposerStaticInitbce00438c4d048c711efd83486ea6ef8
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInitbce00438c4d048c711efd83486ea6ef8::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInitbce00438c4d048c711efd83486ea6ef8::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInitbce00438c4d048c711efd83486ea6ef8::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInitb4aee6e8336bb98297e30a7ab247a210::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInitb4aee6e8336bb98297e30a7ab247a210::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInitb4aee6e8336bb98297e30a7ab247a210::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user