diff options
Diffstat (limited to 'crates/shirabe-php-rpc/php/guards/Composer/Util/ConfigValidator.php')
| -rw-r--r-- | crates/shirabe-php-rpc/php/guards/Composer/Util/ConfigValidator.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/crates/shirabe-php-rpc/php/guards/Composer/Util/ConfigValidator.php b/crates/shirabe-php-rpc/php/guards/Composer/Util/ConfigValidator.php new file mode 100644 index 00000000..0e35d197 --- /dev/null +++ b/crates/shirabe-php-rpc/php/guards/Composer/Util/ConfigValidator.php @@ -0,0 +1,27 @@ +<?php + +// Generated by scripts/plugin-stub-generator; do not edit by hand. +// Guard for Composer\Util\ConfigValidator. +// The Rust side owns this class and the worker has no proxy for it, so this +// declaration shadows the real one: the constants and the hierarchy stay, while +// constructing it or calling anything on it raises an explicit error. + +namespace Composer\Util; + +use Composer\Package\Loader\ValidatingArrayLoader; +use Composer\IO\IOInterface; + +class ConfigValidator +{ + public const CHECK_VERSION = 1; + + public function __construct(IOInterface $io) + { + \ShirabeUnsupportedClass::fail(self::class, '__construct'); + } + + public function validate(string $file, int $arrayLoaderValidationFlags = ValidatingArrayLoader::CHECK_ALL, int $flags = self::CHECK_VERSION): array + { + \ShirabeUnsupportedClass::fail(self::class, 'validate'); + } +} |
