mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-28 21:53:31 +00:00
add patch for get(string )
This commit is contained in:
parent
0a616c462d
commit
0dbc47979e
|
@ -12,6 +12,7 @@
|
|||
"ext-json": "*",
|
||||
"composer/semver": "^3.2",
|
||||
"composer/xdebug-handler": "^2.0",
|
||||
"cweagans/composer-patches": "^1.7",
|
||||
"danielstjules/stringy": "^3.1",
|
||||
"doctrine/inflector": "^2.0",
|
||||
"ergebnis/json-printer": "^3.1",
|
||||
|
@ -47,10 +48,9 @@
|
|||
"symplify/skipper": "^9.4.4",
|
||||
"symplify/smart-file-system": "^9.4.4",
|
||||
"symplify/symfony-php-config": "^9.4.4",
|
||||
"symplify/vendor-patches": "^9.4",
|
||||
"tracy/tracy": "^2.8",
|
||||
"webmozart/assert": "^1.10",
|
||||
"cweagans/composer-patches": "^1.7",
|
||||
"symplify/vendor-patches": "^9.4"
|
||||
"webmozart/assert": "^1.10"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpstan/extension-installer": "^1.1",
|
||||
|
@ -142,6 +142,9 @@
|
|||
"patches": {
|
||||
"symfony/console": [
|
||||
"patches/symfony-console-style-symfonystyle-php.patch"
|
||||
],
|
||||
"symfony/dependency-injection": [
|
||||
"patches/symfony-dependency-injection-servicelocator-php.patch"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
--- /dev/null
|
||||
+++ ../ServiceLocator.php
|
||||
@@ -38,7 +38,7 @@
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
- public function get($id)
|
||||
+ public function get(string $id)
|
||||
{
|
||||
if (!$this->externalId) {
|
||||
return $this->doGet($id);
|
Loading…
Reference in New Issue
Block a user