Skip to content

Commit b8b6085

Browse files
committed
fix CI
1 parent 66012b0 commit b8b6085

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
name: test
1212
strategy:
1313
matrix:
14-
install-args: ['', '--prefer-lowest']
14+
install-args: ['']
1515
php-version: ['8.1']
1616
fail-fast: false
1717
steps:

DependencyInjection/GraphQLiteCompilerPass.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
use Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface;
1616
use TheCodingMachine\GraphQLite\Mappers\StaticClassListTypeMapperFactory;
1717
use Webmozart\Assert\Assert;
18+
use function assert;
1819
use function class_exists;
1920
use Doctrine\Common\Annotations\AnnotationReader as DoctrineAnnotationReader;
2021
use Doctrine\Common\Annotations\AnnotationRegistry;
@@ -75,18 +76,18 @@ public function process(ContainerBuilder $container): void
7576
{
7677
$reader = $this->getAnnotationReader();
7778
$cacheDir = $container->getParameter('kernel.cache_dir');
78-
Assert::string($cacheDir);
79+
assert(is_string($cacheDir));
7980
$this->cacheDir = $cacheDir;
8081
//$inputTypeUtils = new InputTypeUtils($reader, $namingStrategy);
8182

8283
// Let's scan the whole container and tag the services that belong to the namespace we want to inspect.
8384
$controllersNamespaces = $container->getParameter('graphqlite.namespace.controllers');
84-
Assert::isIterable($controllersNamespaces);
8585
$typesNamespaces = $container->getParameter('graphqlite.namespace.types');
86-
Assert::isIterable($typesNamespaces);
86+
assert(is_iterable($controllersNamespaces));
87+
assert(is_iterable($typesNamespaces));
8788

8889
$firewallName = $container->getParameter('graphqlite.security.firewall_name');
89-
Assert::string($firewallName);
90+
assert(is_string($firewallName));
9091
$firewallConfigServiceName = 'security.firewall.map.config.'.$firewallName;
9192

9293
// 2 seconds of TTL in environment mode. Otherwise, let's cache forever!

GraphiQL/EndpointResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Overblog\GraphiQLBundle\Config\GraphiQLControllerEndpoint;
66
use Overblog\GraphiQLBundle\Config\GraphQLEndpoint\GraphQLEndpointInvalidSchemaException;
77
use Symfony\Component\HttpFoundation\RequestStack;
8-
use Webmozart\Assert\Assert;
8+
use function assert;
99

1010
final class EndpointResolver implements GraphiQLControllerEndpoint
1111
{
@@ -23,7 +23,7 @@ public function getBySchema($name)
2323
{
2424
if ('default' === $name) {
2525
$request = $this->requestStack->getCurrentRequest();
26-
Assert::notNull($request);
26+
assert(!is_null($request));
2727

2828
return $request->getBaseUrl().'/graphql';
2929
}

0 commit comments

Comments
 (0)