Skip to content

Commit

Permalink
Updated Rector to commit 52ef7b830be95c27141d893308d7fa27ff4a2290
Browse files Browse the repository at this point in the history
rectorphp/rector-src@52ef7b8 [Scoped] Remove unused vendor/symfony/service-contracts/Test on downgrade build (#5252)
  • Loading branch information
TomasVotruba committed Nov 16, 2023
1 parent 4f6134d commit 0f9778f
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 117 deletions.
7 changes: 6 additions & 1 deletion packages/PostRector/Rector/NameImportingPostRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,13 @@ private function processNodeName(Name $name, File $file) : ?Node
return null;
}
$namespaces = \array_filter($file->getNewStmts(), static function (Stmt $stmt) : bool {
return $stmt instanceof Namespace_;
return $stmt instanceof Namespace_ || $stmt instanceof FileWithoutNamespace;
});
// handle overlapped resolve last new stmts
// @see https://github.com/rectorphp/rector-src/pull/5251
if ($namespaces === []) {
return null;
}
if (\count($namespaces) > 1) {
return null;
}
Expand Down
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 = '5647e1b818482552a447d7f79392c7e2f0dce86e';
public const PACKAGE_VERSION = '52ef7b830be95c27141d893308d7fa27ff4a2290';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-11-15 07:38:05';
public const RELEASE_DATE = '2023-11-16 03:11:58';
/**
* @var int
*/
Expand Down
14 changes: 7 additions & 7 deletions vendor/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -2396,17 +2396,17 @@
},
{
"name": "symfony\/service-contracts",
"version": "v3.3.0",
"version_normalized": "3.3.0.0",
"version": "v3.4.0",
"version_normalized": "3.4.0.0",
"source": {
"type": "git",
"url": "https:\/\/github.com\/symfony\/service-contracts.git",
"reference": "40da9cc13ec349d9e4966ce18b5fbcd724ab10a4"
"reference": "b3313c2dbffaf71c8de2934e2ea56ed2291a3838"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/symfony\/service-contracts\/zipball\/40da9cc13ec349d9e4966ce18b5fbcd724ab10a4",
"reference": "40da9cc13ec349d9e4966ce18b5fbcd724ab10a4",
"url": "https:\/\/api.github.com\/repos\/symfony\/service-contracts\/zipball\/b3313c2dbffaf71c8de2934e2ea56ed2291a3838",
"reference": "b3313c2dbffaf71c8de2934e2ea56ed2291a3838",
"shasum": ""
},
"require": {
Expand All @@ -2416,7 +2416,7 @@
"conflict": {
"ext-psr": "<1.1|>=2"
},
"time": "2023-05-23T14:45:45+00:00",
"time": "2023-07-30T20:28:31+00:00",
"type": "library",
"extra": {
"branch-alias": {
Expand Down Expand Up @@ -2461,7 +2461,7 @@
"standards"
],
"support": {
"source": "https:\/\/github.com\/symfony\/service-contracts\/tree\/v3.3.0"
"source": "https:\/\/github.com\/symfony\/service-contracts\/tree\/v3.4.0"
},
"funding": [
{
Expand Down
2 changes: 1 addition & 1 deletion vendor/composer/installed.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion vendor/symfony/service-contracts/ServiceLocatorTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ trait ServiceLocatorTrait
*/
private $providedTypes;
/**
* @param callable[] $factories
* @param array<string, callable> $factories
*/
public function __construct(array $factories)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function has(string $id) : bool;
* * ['foo' => '?'] means the container provides service name "foo" of unspecified type
* * ['bar' => '?Bar\Baz'] means the container provides a service "bar" of type Bar\Baz|null
*
* @return string[] The provided service types, keyed by service names
* @return array<string, string> The provided service types, keyed by service names
*/
public function getProvidedServices() : array;
}
21 changes: 0 additions & 21 deletions vendor/symfony/service-contracts/Test/ServiceLocatorTest.php

This file was deleted.

83 changes: 0 additions & 83 deletions vendor/symfony/service-contracts/Test/ServiceLocatorTestCase.php

This file was deleted.

0 comments on commit 0f9778f

Please sign in to comment.