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:45See 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
changed the title
test: remove PHPStan exclusions to verify PHP 7.4 CI detection
fix: use PHP 7.4 compatible syntax in attribute classes
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
marked this pull request as ready for review
spawnia
deleted the
1843-php74-syntax-compatibility
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters