pestphp/pest · error · InvalidArgumentException
Bound datasets are not supported while doing high order test
Error message
Bound datasets are not supported while doing high order testing.
What it means
Error "Bound datasets are not supported while doing high order testing." thrown in pestphp/pest.
Source
Thrown at src/Support/Reflection.php:68
/**
* @param array<int, mixed> $args
*/
public static function bindCallable(callable $callable, array $args = []): mixed
{
return Closure::fromCallable($callable)->bindTo(TestSuite::getInstance()->test)(...$args);
}
public static function bindCallableWithData(callable $callable): mixed
{
$test = TestSuite::getInstance()->test;
if (! $test instanceof TestCase) {
return self::bindCallable($callable);
}
foreach ($test->providedData() as $value) {
if ($value instanceof Closure) {
throw new InvalidArgumentException('Bound datasets are not supported while doing high order testing.');
}
}
return Closure::fromCallable($callable)->bindTo($test)(...$test->providedData());
}
public static function getFileNameFromClosure(Closure $closure): string
{
$reflectionClosure = new ReflectionFunction($closure);
return (string) $reflectionClosure->getFileName();
}
public static function getPropertyValue(object $object, string $property): mixed
{
$reflectionClass = new ReflectionClass($object);
$reflectionProperty = null;View on GitHub (pinned to 1af74a215c)
When it happens
Trigger: Thrown at src/Support/Reflection.php:68 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of pestphp/pest@1af74a215c (2026-08-21).
Data as JSON: /api/errors/49b302a06af18095.
Report an issue: GitHub.