Version 5.1 - All the GraphQL #32

Closed
timw4mail wants to merge 1160 commits from develop into master
Showing only changes of commit eb461e2f2e - Show all commits

View File

@ -68,11 +68,6 @@ class Container implements ContainerInterface {
*/ */
public function get(string $id): mixed public function get(string $id): mixed
{ {
if ( ! \is_string($id))
{
throw new ContainerException('Id must be a string');
}
if ($this->has($id)) if ($this->has($id))
{ {
// Return an object instance, if it already exists // Return an object instance, if it already exists
@ -101,11 +96,6 @@ class Container implements ContainerInterface {
*/ */
public function getNew(string $id, ?array $args = NULL): mixed public function getNew(string $id, ?array $args = NULL): mixed
{ {
if ( ! \is_string($id))
{
throw new ContainerException('Id must be a string');
}
if ($this->has($id)) if ($this->has($id))
{ {
// By default, call a factory with the Container // By default, call a factory with the Container