fix: use PHP 7.4 compatible syntax in attribute classes by spawnia · Pull Request #1847 · webonyx/graphql-php

and others added 3 commits

February 5, 2026 16:45
See if existing PHP 7.4 CI catches constructor promotion syntax.

Related: #1843

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Expand constructor promotion to traditional property declaration
and assignment, making these files parseable by tools running on
PHP 7.4.

Fixes #1843

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

@spawnia spawnia changed the title test: remove PHPStan exclusions to verify PHP 7.4 CI detection fix: use PHP 7.4 compatible syntax in attribute classes

Feb 5, 2026

@spawnia @claude

Trailing commas in function/method parameter lists are only available
since PHP 8.0.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

@spawnia spawnia marked this pull request as ready for review

February 5, 2026 16:02

@spawnia spawnia deleted the 1843-php74-syntax-compatibility branch

February 5, 2026 16:03