@@ -375,7 +375,7 @@ private function addServiceReturn($id, $definition)
375
375
* @throws InvalidArgumentException
376
376
* @throws RuntimeException
377
377
*/
378
- private function addServiceInstance ($ id , $ definition )
378
+ private function addServiceInstance ($ id , Definition $ definition )
379
379
{
380
380
$ class = $ definition ->getClass ();
381
381
@@ -425,7 +425,7 @@ private function addServiceInstance($id, $definition)
425
425
*
426
426
* @return bool
427
427
*/
428
- private function isSimpleInstance ($ id , $ definition )
428
+ private function isSimpleInstance ($ id , Definition $ definition )
429
429
{
430
430
foreach (array_merge (array ($ definition ), $ this ->getInlinedDefinitions ($ definition )) as $ sDefinition ) {
431
431
if ($ definition !== $ sDefinition && !$ this ->hasReference ($ id , $ sDefinition ->getMethodCalls ())) {
@@ -449,7 +449,7 @@ private function isSimpleInstance($id, $definition)
449
449
*
450
450
* @return string
451
451
*/
452
- private function addServiceMethodCalls ($ id , $ definition , $ variableName = 'instance ' )
452
+ private function addServiceMethodCalls ($ id , Definition $ definition , $ variableName = 'instance ' )
453
453
{
454
454
$ calls = '' ;
455
455
foreach ($ definition ->getMethodCalls () as $ call ) {
@@ -464,7 +464,7 @@ private function addServiceMethodCalls($id, $definition, $variableName = 'instan
464
464
return $ calls ;
465
465
}
466
466
467
- private function addServiceProperties ($ id , $ definition , $ variableName = 'instance ' )
467
+ private function addServiceProperties ($ id , Definition $ definition , $ variableName = 'instance ' )
468
468
{
469
469
$ code = '' ;
470
470
foreach ($ definition ->getProperties () as $ name => $ value ) {
@@ -484,7 +484,7 @@ private function addServiceProperties($id, $definition, $variableName = 'instanc
484
484
*
485
485
* @throws ServiceCircularReferenceException when the container contains a circular reference
486
486
*/
487
- private function addServiceInlinedDefinitionsSetup ($ id , $ definition )
487
+ private function addServiceInlinedDefinitionsSetup ($ id , Definition $ definition )
488
488
{
489
489
$ this ->referenceVariables [$ id ] = new Variable ('instance ' );
490
490
@@ -528,7 +528,7 @@ private function addServiceInlinedDefinitionsSetup($id, $definition)
528
528
*
529
529
* @return string
530
530
*/
531
- private function addServiceConfigurator ($ id , $ definition , $ variableName = 'instance ' )
531
+ private function addServiceConfigurator ($ id , Definition $ definition , $ variableName = 'instance ' )
532
532
{
533
533
if (!$ callable = $ definition ->getConfigurator ()) {
534
534
return '' ;
@@ -560,7 +560,7 @@ private function addServiceConfigurator($id, $definition, $variableName = 'insta
560
560
*
561
561
* @return string
562
562
*/
563
- private function addService ($ id , $ definition )
563
+ private function addService ($ id , Definition $ definition )
564
564
{
565
565
$ this ->definitionVariables = new \SplObjectStorage ();
566
566
$ this ->referenceVariables = array ();
@@ -1144,7 +1144,7 @@ protected function getDefaultParameters()
1144
1144
*
1145
1145
* @throws InvalidArgumentException
1146
1146
*/
1147
- private function exportParameters ($ parameters , $ path = '' , $ indent = 12 )
1147
+ private function exportParameters (array $ parameters , $ path = '' , $ indent = 12 )
1148
1148
{
1149
1149
$ php = array ();
1150
1150
foreach ($ parameters as $ key => $ value ) {
0 commit comments