Skip to content

Commit 5c2c9cd

Browse files
committed
Updated Rector to commit d31f656f7f8dfb2e8ee4db3369688037b85fda82
rectorphp/rector-src@d31f656 [Php80] Handle Behat transform annotation (#7899)
1 parent 4b9bfe1 commit 5c2c9cd

7 files changed

Lines changed: 33 additions & 24 deletions

File tree

config/set/behat-annotations-to-attributes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
use Rector\Php80\Rector\Class_\AnnotationToAttributeRector;
88
use Rector\Php80\ValueObject\AnnotationToAttribute;
99
return static function (RectorConfig $rectorConfig): void {
10-
$rectorConfig->ruleWithConfiguration(AnnotationToAttributeRector::class, [new AnnotationToAttribute('Given', 'Behat\Step\Given', [], \true), new AnnotationToAttribute('When', 'Behat\Step\When', [], \true), new AnnotationToAttribute('Then', 'Behat\Step\Then', [], \true), new AnnotationToAttribute('BeforeSuite', 'Behat\Hook\BeforeSuite', [], \true), new AnnotationToAttribute('AfterSuite', 'Behat\Hook\AfterSuite', [], \true), new AnnotationToAttribute('BeforeFeature', 'Behat\Hook\BeforeFeature', [], \true), new AnnotationToAttribute('AfterFeature', 'Behat\Hook\AfterFeature', [], \true), new AnnotationToAttribute('BeforeScenario', 'Behat\Hook\BeforeScenario', [], \true), new AnnotationToAttribute('AfterScenario', 'Behat\Hook\AfterScenario', [], \true), new AnnotationToAttribute('BeforeStep', 'Behat\Hook\BeforeStep', [], \true), new AnnotationToAttribute('AfterStep', 'Behat\Hook\AfterStep', [], \true)]);
10+
$rectorConfig->ruleWithConfiguration(AnnotationToAttributeRector::class, [new AnnotationToAttribute('Given', 'Behat\Step\Given', [], \true), new AnnotationToAttribute('When', 'Behat\Step\When', [], \true), new AnnotationToAttribute('Then', 'Behat\Step\Then', [], \true), new AnnotationToAttribute('BeforeSuite', 'Behat\Hook\BeforeSuite', [], \true), new AnnotationToAttribute('AfterSuite', 'Behat\Hook\AfterSuite', [], \true), new AnnotationToAttribute('BeforeFeature', 'Behat\Hook\BeforeFeature', [], \true), new AnnotationToAttribute('AfterFeature', 'Behat\Hook\AfterFeature', [], \true), new AnnotationToAttribute('BeforeScenario', 'Behat\Hook\BeforeScenario', [], \true), new AnnotationToAttribute('AfterScenario', 'Behat\Hook\AfterScenario', [], \true), new AnnotationToAttribute('BeforeStep', 'Behat\Hook\BeforeStep', [], \true), new AnnotationToAttribute('AfterStep', 'Behat\Hook\AfterStep', [], \true), new AnnotationToAttribute('Transform', 'Behat\Transformation\Transform', [], \true)]);
1111
};

src/Application/VersionResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ final class VersionResolver
1919
* @api
2020
* @var string
2121
*/
22-
public const PACKAGE_VERSION = '730c316ecce7603c42899ba0c8d087de8d67ce60';
22+
public const PACKAGE_VERSION = 'd31f656f7f8dfb2e8ee4db3369688037b85fda82';
2323
/**
2424
* @api
2525
* @var string
2626
*/
27-
public const RELEASE_DATE = '2026-02-15 20:32:53';
27+
public const RELEASE_DATE = '2026-02-18 19:56:15';
2828
/**
2929
* @var int
3030
*/

vendor/composer/installed.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -574,25 +574,25 @@
574574
},
575575
{
576576
"name": "illuminate\/contracts",
577-
"version": "v12.51.0",
578-
"version_normalized": "12.51.0.0",
577+
"version": "v12.52.0",
578+
"version_normalized": "12.52.0.0",
579579
"source": {
580580
"type": "git",
581581
"url": "https:\/\/github.com\/illuminate\/contracts.git",
582-
"reference": "3d4eeab332c04a9eaea90968c19a66f78745e47a"
582+
"reference": "620d82bad07f55fcb7f5125f44c9d9b93335fb8c"
583583
},
584584
"dist": {
585585
"type": "zip",
586-
"url": "https:\/\/api.github.com\/repos\/illuminate\/contracts\/zipball\/3d4eeab332c04a9eaea90968c19a66f78745e47a",
587-
"reference": "3d4eeab332c04a9eaea90968c19a66f78745e47a",
586+
"url": "https:\/\/api.github.com\/repos\/illuminate\/contracts\/zipball\/620d82bad07f55fcb7f5125f44c9d9b93335fb8c",
587+
"reference": "620d82bad07f55fcb7f5125f44c9d9b93335fb8c",
588588
"shasum": ""
589589
},
590590
"require": {
591591
"php": "^8.2",
592592
"psr\/container": "^1.1.1|^2.0.1",
593593
"psr\/simple-cache": "^1.0|^2.0|^3.0"
594594
},
595-
"time": "2026-01-28T15:26:27+00:00",
595+
"time": "2026-02-10T18:16:44+00:00",
596596
"type": "library",
597597
"extra": {
598598
"branch-alias": {
@@ -3301,17 +3301,17 @@
33013301
},
33023302
{
33033303
"name": "webmozart\/assert",
3304-
"version": "2.1.3",
3305-
"version_normalized": "2.1.3.0",
3304+
"version": "2.1.5",
3305+
"version_normalized": "2.1.5.0",
33063306
"source": {
33073307
"type": "git",
33083308
"url": "https:\/\/github.com\/webmozarts\/assert.git",
3309-
"reference": "6976757ba8dd70bf8cbaea0914ad84d8b51a9f46"
3309+
"reference": "79155f94852fa27e2f73b459f6503f5e87e2c188"
33103310
},
33113311
"dist": {
33123312
"type": "zip",
3313-
"url": "https:\/\/api.github.com\/repos\/webmozarts\/assert\/zipball\/6976757ba8dd70bf8cbaea0914ad84d8b51a9f46",
3314-
"reference": "6976757ba8dd70bf8cbaea0914ad84d8b51a9f46",
3313+
"url": "https:\/\/api.github.com\/repos\/webmozarts\/assert\/zipball\/79155f94852fa27e2f73b459f6503f5e87e2c188",
3314+
"reference": "79155f94852fa27e2f73b459f6503f5e87e2c188",
33153315
"shasum": ""
33163316
},
33173317
"require": {
@@ -3325,7 +3325,7 @@
33253325
"ext-simplexml": "",
33263326
"ext-spl": ""
33273327
},
3328-
"time": "2026-02-13T21:01:40+00:00",
3328+
"time": "2026-02-18T14:09:36+00:00",
33293329
"type": "library",
33303330
"extra": {
33313331
"branch-alias": {
@@ -3360,7 +3360,7 @@
33603360
],
33613361
"support": {
33623362
"issues": "https:\/\/github.com\/webmozarts\/assert\/issues",
3363-
"source": "https:\/\/github.com\/webmozarts\/assert\/tree\/2.1.3"
3363+
"source": "https:\/\/github.com\/webmozarts\/assert\/tree\/2.1.5"
33643364
},
33653365
"install-path": "..\/webmozart\/assert"
33663366
}

vendor/composer/installed.php

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

vendor/illuminate/contracts/Cookie/Factory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ interface Factory
2020
*/
2121
public function make($name, $value, $minutes = 0, $path = null, $domain = null, $secure = null, $httpOnly = \true, $raw = \false, $sameSite = null);
2222
/**
23-
* Create a cookie that lasts "forever" (five years).
23+
* Create a cookie that lasts "forever" (400 days).
2424
*
2525
* @param string $name
2626
* @param string $value

vendor/webmozart/assert/CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
Changelog
22
=========
33

4+
## 2.1.5
5+
6+
### Fixed
7+
8+
- Fixed regression of `instanceOf` messages
9+
10+
## 2.1.4
11+
12+
### Fixed
13+
14+
- Use custom message for more internal calls
15+
416
## 2.1.3
517

618
### Fixed

vendor/webmozart/assert/src/Assert.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,6 @@ public static function isIterable($value, string $message = ''): iterable
396396
*/
397397
public static function isInstanceOf($value, $class, string $message = ''): object
398398
{
399-
static::object($value);
400399
static::string($class, 'Expected class as a string. Got: %s');
401400
if (!$value instanceof $class) {
402401
static::reportInvalidArgument(\sprintf($message ?: 'Expected an instance of %2$s. Got: %s', static::typeToString($value), $class));
@@ -417,9 +416,8 @@ public static function isInstanceOf($value, $class, string $message = ''): objec
417416
*/
418417
public static function notInstanceOf($value, $class, string $message = ''): object
419418
{
420-
static::object($value);
421419
static::string($class, 'Expected class as a string. Got: %s');
422-
if ($value instanceof $class) {
420+
if (!\is_object($value) || $value instanceof $class) {
423421
static::reportInvalidArgument(\sprintf($message ?: 'Expected an instance other than %2$s. Got: %s', static::typeToString($value), $class));
424422
}
425423
return $value;
@@ -438,7 +436,6 @@ public static function notInstanceOf($value, $class, string $message = ''): obje
438436
*/
439437
public static function isInstanceOfAny($value, $classes, string $message = ''): object
440438
{
441-
static::object($value);
442439
static::isIterable($classes);
443440
foreach ($classes as $class) {
444441
static::string($class, 'Expected class as a string. Got: %s');
@@ -485,7 +482,7 @@ public static function isAOf($value, $class, string $message = '')
485482
*/
486483
public static function isNotA($value, $class, string $message = '')
487484
{
488-
static::objectish($value);
485+
static::objectish($value, $message);
489486
static::string($class, 'Expected class as a string. Got: %s');
490487
if (\is_a($value, $class, \is_string($value))) {
491488
static::reportInvalidArgument(\sprintf($message ?: 'Expected an instance of this class or to this class among its parents other than "%2$s". Got: %s', static::valueToString($value), $class));
@@ -504,7 +501,7 @@ public static function isNotA($value, $class, string $message = '')
504501
*/
505502
public static function isAnyOf($value, $classes, string $message = '')
506503
{
507-
static::objectish($value);
504+
static::objectish($value, $message);
508505
static::isIterable($classes);
509506
foreach ($classes as $class) {
510507
static::string($class, 'Expected class as a string. Got: %s');

0 commit comments

Comments
 (0)