Skip to content

MacOS: upgrade to php 8.1 #15

Description

@Y81Kakaei

I forked the repository and when I was trying to install the dependencies I ran this error that says:
Symfony\Component\ErrorHandler\Error\UndefinedFunctionError: Attempted to call function "array_is_list" from namespace "Symfony\Component\Config\Definition".
(the error message truncated )

This caused by this dependency :
"symfony/polyfill-php81": "*"
in replaces section of composer.json

Turned out the reason is that my local PHP version is 8.0 but this dependency needs PHP 8.1.

You need to upgrade your local PHP.
I found this tutorial useful:
https://chasingcode.dev/blog/upgrade-php-74-cli-mac/

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions