Skip to content

Commit 428b027

Browse files
committed
Fix compatibility with Symfony 4
1 parent edf9864 commit 428b027

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/DependencyInjection/MockerContainer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function unmock($id)
4747
*
4848
* @return object
4949
*/
50-
public function get(string $id, int $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE): ?object
50+
public function get($id, $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE): ?object
5151
{
5252
if (array_key_exists($id, self::$mockedServices)) {
5353
return self::$mockedServices[$id];
@@ -61,7 +61,7 @@ public function get(string $id, int $invalidBehavior = self::EXCEPTION_ON_INVALI
6161
*
6262
* @return boolean
6363
*/
64-
public function has(string $id): bool
64+
public function has($id): bool
6565
{
6666
if (array_key_exists($id, self::$mockedServices)) {
6767
return true;

0 commit comments

Comments
 (0)