Skip to content

Commit

Permalink
Merge pull request #94 from thefrosty/develop
Browse files Browse the repository at this point in the history
Develop -> Master
  • Loading branch information
thefrosty authored Jun 22, 2022
2 parents ef5dc60 + b86ba39 commit 6a22f0e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@
"phpmd/phpmd": "^2.6",
"phpunit/phpunit": "^9",
"pimple/pimple": "^3.5",
"roots/wordpress": "^5.9.1",
"roots/wordpress": "^6.0.0",
"squizlabs/php_codesniffer": "^3.2",
"szepeviktor/phpstan-wordpress": "^1.0",
"wp-phpunit/wp-phpunit": "^5.9.1",
"wp-phpunit/wp-phpunit": "^6.0.0",
"yoast/phpunit-polyfills": "^1.0.2"
},
"suggest": {
Expand Down
3 changes: 3 additions & 0 deletions src/Plugin/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\ContainerInterface;
use Psr\Container\NotFoundExceptionInterface;
use ReturnTypeWillChange;

/**
* Container class.
Expand All @@ -25,6 +26,7 @@ class Container extends Pimple implements ContainerInterface
* @throws ContainerExceptionInterface Error while retrieving the entry.
* @throws NotFoundExceptionInterface No entry was found for **this** identifier.
*/
#[ReturnTypeWillChange]
public function get(string $id)
{
return $this->offsetGet($id);
Expand All @@ -40,6 +42,7 @@ public function get(string $id)
* @param string $id Identifier of the entry to look for.
* @return bool
*/
#[ReturnTypeWillChange]
public function has(string $id): bool
{
return $this->offsetExists($id);
Expand Down

0 comments on commit 6a22f0e

Please sign in to comment.