Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH Use class name instead of self #590

Merged

Conversation

emteknetnz
Copy link
Member

return false;
}
$path = self::getRebuildOnMissingPath();
$path = static::getRebuildOnMissingPath();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This actually needs to be static, not AbstractTypeRegistry, otherwise there's a unit test failure

1) SilverStripe\GraphQL\Tests\Schema\AbstractTypeRegistryTest::testRebuildOnMissing with data set #3 (true, true, true, false, false)
Error: Cannot call abstract method SilverStripe\GraphQL\Schema\Storage\AbstractTypeRegistry::getSourceDirectory()

/var/www/vendor/silverstripe/graphql/src/Schema/Storage/AbstractTypeRegistry.php:99
/var/www/vendor/silverstripe/graphql/src/Schema/Storage/AbstractTypeRegistry.php:83
/var/www/vendor/silverstripe/graphql/tests/Schema/AbstractTypeRegistryTest.php:93
/var/www/vendor/bin/phpunit:122

@emteknetnz emteknetnz force-pushed the pulls/5.2/remove-self branch from 63e5a1a to fb18d9d Compare June 14, 2024 09:46
Copy link
Member

@GuySartorelli GuySartorelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@GuySartorelli GuySartorelli merged commit 80bdc3b into silverstripe:5.2 Jun 17, 2024
12 checks passed
@GuySartorelli GuySartorelli deleted the pulls/5.2/remove-self branch June 17, 2024 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants