Add explicit PHP language requirement to composer.json

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Minor - P4
    • laravel-4.0.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The library has an indirect PHP requirement by way of laravel/framework: ^10.0, which requires PHP 8.1+, but it does not specify a PHP requirement directly in its own composer.json. I think it would be sensible to do so for visibility (e.g. Psalm might reference that if we integrate static analysis down the line), and we can keep our own requirement in line with what the package code itself uses. For example, str_contains() requires PHP 8+.

      This came up in GromNaN/laravel-mongodb#27.

            Assignee:
            Unassigned
            Reporter:
            Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: