Skip to content

Commit 44ce781

Browse files
JJJclaude
andcommitted
Fix: remove strict_types declaration illegal under wp eval-file
wp eval-file evals the script body, so declare(strict_types=1) is never the first statement and PHP fatals. Matches the readiness-report.php convention. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent f425a1c commit 44ce781

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

bin/generate-schemas.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
* @package WcCoreTables
1818
*/
1919

20-
declare( strict_types = 1 );
20+
// No declare(strict_types) here: wp eval-file evals this file, where a strict_types
21+
// declaration cannot be the first statement of the script.
2122

2223
use WcCoreTables\Generator\SchemaGenerator;
2324

0 commit comments

Comments
 (0)