Skip to content

Commit

Permalink
Fix DirectiveLocator assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
spawnia committed May 25, 2023
1 parent b26fb27 commit 499f3c0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ You can find and compare releases at the [GitHub release page](https://github.co

## Unreleased

## v6.9.2

### Fixed

- Fix `DirectiveLocator` assertion

## v6.9.1

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion src/Schema/DirectiveLocator.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ public function classes(): array
$directives = [];

foreach ($this->namespaces() as $directiveNamespace) {
/** @var array<class-string> $classesInNamespace */
$classesInNamespace = ClassFinder::getClassesInNamespace($directiveNamespace);

foreach ($classesInNamespace as $class) {
assert(class_exists($class));
$reflection = new \ReflectionClass($class);
if (! $reflection->isInstantiable()) {
continue;
Expand Down

0 comments on commit 499f3c0

Please sign in to comment.