@@ -375,7 +375,7 @@ private function addServiceReturn($id, $definition)
375375 * @throws InvalidArgumentException
376376 * @throws RuntimeException
377377 */
378- private function addServiceInstance ($ id , $ definition )
378+ private function addServiceInstance ($ id , Definition $ definition )
379379 {
380380 $ class = $ definition ->getClass ();
381381
@@ -425,7 +425,7 @@ private function addServiceInstance($id, $definition)
425425 *
426426 * @return bool
427427 */
428- private function isSimpleInstance ($ id , $ definition )
428+ private function isSimpleInstance ($ id , Definition $ definition )
429429 {
430430 foreach (array_merge (array ($ definition ), $ this ->getInlinedDefinitions ($ definition )) as $ sDefinition ) {
431431 if ($ definition !== $ sDefinition && !$ this ->hasReference ($ id , $ sDefinition ->getMethodCalls ())) {
@@ -449,7 +449,7 @@ private function isSimpleInstance($id, $definition)
449449 *
450450 * @return string
451451 */
452- private function addServiceMethodCalls ($ id , $ definition , $ variableName = 'instance ' )
452+ private function addServiceMethodCalls ($ id , Definition $ definition , $ variableName = 'instance ' )
453453 {
454454 $ calls = '' ;
455455 foreach ($ definition ->getMethodCalls () as $ call ) {
@@ -464,7 +464,7 @@ private function addServiceMethodCalls($id, $definition, $variableName = 'instan
464464 return $ calls ;
465465 }
466466
467- private function addServiceProperties ($ id , $ definition , $ variableName = 'instance ' )
467+ private function addServiceProperties ($ id , Definition $ definition , $ variableName = 'instance ' )
468468 {
469469 $ code = '' ;
470470 foreach ($ definition ->getProperties () as $ name => $ value ) {
@@ -484,7 +484,7 @@ private function addServiceProperties($id, $definition, $variableName = 'instanc
484484 *
485485 * @throws ServiceCircularReferenceException when the container contains a circular reference
486486 */
487- private function addServiceInlinedDefinitionsSetup ($ id , $ definition )
487+ private function addServiceInlinedDefinitionsSetup ($ id , Definition $ definition )
488488 {
489489 $ this ->referenceVariables [$ id ] = new Variable ('instance ' );
490490
@@ -528,7 +528,7 @@ private function addServiceInlinedDefinitionsSetup($id, $definition)
528528 *
529529 * @return string
530530 */
531- private function addServiceConfigurator ($ id , $ definition , $ variableName = 'instance ' )
531+ private function addServiceConfigurator ($ id , Definition $ definition , $ variableName = 'instance ' )
532532 {
533533 if (!$ callable = $ definition ->getConfigurator ()) {
534534 return '' ;
@@ -560,7 +560,7 @@ private function addServiceConfigurator($id, $definition, $variableName = 'insta
560560 *
561561 * @return string
562562 */
563- private function addService ($ id , $ definition )
563+ private function addService ($ id , Definition $ definition )
564564 {
565565 $ this ->definitionVariables = new \SplObjectStorage ();
566566 $ this ->referenceVariables = array ();
@@ -1124,7 +1124,7 @@ protected function getDefaultParameters()
11241124 *
11251125 * @throws InvalidArgumentException
11261126 */
1127- private function exportParameters ($ parameters , $ path = '' , $ indent = 12 )
1127+ private function exportParameters (array $ parameters , $ path = '' , $ indent = 12 )
11281128 {
11291129 $ php = array ();
11301130 foreach ($ parameters as $ key => $ value ) {
0 commit comments