Skip to content

Draft: Fix PHP 8.2+ dynamic property deprecation warnings#45

Open
zethzeth wants to merge 2 commits intoebsp:masterfrom
zethzeth:fix/php82-dynamic-property-deprecation
Open

Draft: Fix PHP 8.2+ dynamic property deprecation warnings#45
zethzeth wants to merge 2 commits intoebsp:masterfrom
zethzeth:fix/php82-dynamic-property-deprecation

Conversation

@zethzeth
Copy link
Copy Markdown

Replace dynamic property creation with Route::defaults array to fix deprecation warnings when using ->lists() and ->docs() macros.

Changed:

  • Store _lists and _docs in $route->defaults array instead of dynamic properties
  • Update OpenAPI.php to read from defaults array
  • Update tests to use defaults array

This resolves warnings like "Creation of dynamic property Illuminate\Routing\Route::$_docs is deprecated"

🤖 Generated with Claude Code


Before

screenshot--2025-11-18--10-59-28

After

screenshot--2025-11-18--11-26-24

Replace dynamic property creation with Route::defaults array to fix deprecation warnings when using ->lists() and ->docs() macros.

Changed:
- Store _lists and _docs in $route->defaults array instead of dynamic properties
- Update OpenAPI.php to read from defaults array
- Update tests to use defaults array

This resolves warnings like "Creation of dynamic property Illuminate\Routing\Route::$_docs is deprecated"

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@zethzeth zethzeth changed the title Fix PHP 8.2+ dynamic property deprecation warnings Draft: Fix PHP 8.2+ dynamic property deprecation warnings Nov 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants