mirror of https://github.com/rectorphp/rector.git
add symfony/dependency-injectoin wiht completed types
This commit is contained in:
parent
708bf7e879
commit
b07a9cc1ba
|
@ -33,7 +33,7 @@
|
|||
"sebastian/diff": "^4.0.4",
|
||||
"ssch/typo3-rector": "dev-main#e75102b",
|
||||
"symfony/console": "5.3.x-dev",
|
||||
"symfony/dependency-injection": "^5.3",
|
||||
"symfony/dependency-injection": "5.3.x-dev",
|
||||
"symfony/finder": "^5.3",
|
||||
"symfony/http-kernel": "^5.3",
|
||||
"symfony/process": "^5.3",
|
||||
|
@ -142,11 +142,6 @@
|
|||
"patches": {
|
||||
"symfony/console": [
|
||||
"patches/symfony-console-style-symfonystyle-php.patch"
|
||||
],
|
||||
"symfony/dependency-injection": [
|
||||
"patches/symfony-dependency-injection-servicelocator-php.patch",
|
||||
"patches/symfony-dependency-injection-argument-servicelocator-php.patch",
|
||||
"patches/symfony-dependency-injection-parameterbag-containerbag-php.patch"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
--- /dev/null
|
||||
+++ ../Argument/ServiceLocator.php
|
||||
@@ -37,7 +37,7 @@
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
- public function get($id)
|
||||
+ public function get(string $id)
|
||||
{
|
||||
return isset($this->serviceMap[$id]) ? ($this->factory)(...$this->serviceMap[$id]) : parent::get($id);
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
--- /dev/null
|
||||
+++ ../ParameterBag/ContainerBag.php
|
||||
@@ -36,7 +36,7 @@
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
- public function get($name)
|
||||
+ public function get(string $name)
|
||||
{
|
||||
return $this->container->getParameter($name);
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
--- /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