mirror of
https://github.com/rectorphp/rector.git
synced 2025-04-21 16:02:23 +02:00
Updated Rector to commit d5c3fc753e321db315a8205ce5853ccf878b9f1e
d5c3fc753e
[Transform] Allow transform ruleWithConfiguration() to withConfiguredRule() on RectorConfigBuilderRector (#5637)
This commit is contained in:
parent
d9e08f8aaf
commit
a8232e0579
@ -115,6 +115,9 @@ CODE_SAMPLE
|
||||
} elseif ($name === 'bootstrapFiles') {
|
||||
Assert::isAOf($value, Array_::class);
|
||||
$bootstrapFiles = $value;
|
||||
} elseif ($name === 'ruleWithConfiguration') {
|
||||
$newExpr = $this->nodeFactory->createMethodCall($newExpr, 'withConfiguredRule', [$value, $args[1]->value]);
|
||||
$hasChanged = \true;
|
||||
} else {
|
||||
// implementing method by method
|
||||
return null;
|
||||
|
@ -19,12 +19,12 @@ final class VersionResolver
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = 'a3d23752b85be3fbff187337ccbe461a4fe10f74';
|
||||
public const PACKAGE_VERSION = 'd5c3fc753e321db315a8205ce5853ccf878b9f1e';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2024-02-18 20:25:31';
|
||||
public const RELEASE_DATE = '2024-02-19 20:21:05';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
14
vendor/composer/installed.json
vendored
14
vendor/composer/installed.json
vendored
@ -296,17 +296,17 @@
|
||||
},
|
||||
{
|
||||
"name": "doctrine\/inflector",
|
||||
"version": "2.0.9",
|
||||
"version_normalized": "2.0.9.0",
|
||||
"version": "2.0.10",
|
||||
"version_normalized": "2.0.10.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https:\/\/github.com\/doctrine\/inflector.git",
|
||||
"reference": "2930cd5ef353871c821d5c43ed030d39ac8cfe65"
|
||||
"reference": "5817d0659c5b50c9b950feb9af7b9668e2c436bc"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https:\/\/api.github.com\/repos\/doctrine\/inflector\/zipball\/2930cd5ef353871c821d5c43ed030d39ac8cfe65",
|
||||
"reference": "2930cd5ef353871c821d5c43ed030d39ac8cfe65",
|
||||
"url": "https:\/\/api.github.com\/repos\/doctrine\/inflector\/zipball\/5817d0659c5b50c9b950feb9af7b9668e2c436bc",
|
||||
"reference": "5817d0659c5b50c9b950feb9af7b9668e2c436bc",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -320,7 +320,7 @@
|
||||
"phpunit\/phpunit": "^8.5 || ^9.5",
|
||||
"vimeo\/psalm": "^4.25 || ^5.4"
|
||||
},
|
||||
"time": "2024-01-15T18:05:13+00:00",
|
||||
"time": "2024-02-18T20:23:39+00:00",
|
||||
"type": "library",
|
||||
"installation-source": "dist",
|
||||
"autoload": {
|
||||
@ -370,7 +370,7 @@
|
||||
],
|
||||
"support": {
|
||||
"issues": "https:\/\/github.com\/doctrine\/inflector\/issues",
|
||||
"source": "https:\/\/github.com\/doctrine\/inflector\/tree\/2.0.9"
|
||||
"source": "https:\/\/github.com\/doctrine\/inflector\/tree\/2.0.10"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
|
2
vendor/composer/installed.php
vendored
2
vendor/composer/installed.php
vendored
File diff suppressed because one or more lines are too long
@ -45,7 +45,7 @@ class Inflectible
|
||||
(yield new Transformation(new Pattern('(analy|diagno|^ba|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$'), 'RectorPrefix202402\\1\\2sis'));
|
||||
(yield new Transformation(new Pattern('(tax)a$'), '\\1on'));
|
||||
(yield new Transformation(new Pattern('(c)riteria$'), '\\1riterion'));
|
||||
(yield new Transformation(new Pattern('([ti])a$'), '\\1um'));
|
||||
(yield new Transformation(new Pattern('([ti])a(?<!regatta)$'), '\\1um'));
|
||||
(yield new Transformation(new Pattern('(p)eople$'), 'RectorPrefix202402\\1\\2erson'));
|
||||
(yield new Transformation(new Pattern('(m)en$'), '\\1an'));
|
||||
(yield new Transformation(new Pattern('(c)hildren$'), 'RectorPrefix202402\\1\\2hild'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user