Skip to content

Commit b4c78de

Browse files
authored
Merge pull request #21 from Zales0123/bring-back-symfony-4-support
Bring back Symfony 4 support
2 parents a6b73e1 + 428b027 commit b4c78de

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
matrix:
1414
php: ["8.0", "8.1"]
15-
symfony: ["^5.4", "^6.0"]
15+
symfony: ["^4.4", "^5.4", "^6.0"]
1616

1717
steps:
1818

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)