Skip to content

Conversation

@barryvdh
Copy link
Owner

@barryvdh barryvdh commented Dec 29, 2024

Summary

With https://www.jetbrains.com/help/phpstorm/ide-advanced-metadata.html we can also supply an expected Return.

We can use this to autocomplete functions like view/config etc.

Downside is that it needs to run often to be useful, eg. when config or views change. But it can still be helpfull.

Prototype done for config.

  • Config
  • Views
  • Routes
  • Translations

Screenshot 2024-12-29 at 19 33 21

Screenshot 2024-12-29 at 14 21 25@2x

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Misc. change (internal, infrastructure, maintenance, etc.)

Checklist

  • Existing tests have been adapted and/or new tests have been added
  • Update the README.md
  • Code style has been fixed via composer fix-style

@barryvdh barryvdh changed the title Add phpstorm meta hints Add phpstorm meta argument hints Dec 29, 2024
@barryvdh
Copy link
Owner Author

Nice of Laravel to provide some good sources :) https://github.com/laravel/vs-code-extension/tree/main/php-templates

@barryvdh barryvdh merged commit 4e4da08 into master Dec 29, 2024
19 checks passed
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