Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated: preg_match(): Passing null to parameter #2 #61

Open
ekubovsky opened this issue Apr 12, 2023 · 1 comment
Open

Deprecated: preg_match(): Passing null to parameter #2 #61

ekubovsky opened this issue Apr 12, 2023 · 1 comment

Comments

@ekubovsky
Copy link

Working on the Drupal site, got PHP updated to v8.1. Running Drush commands throws the following error:

Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /var/www/vendor/consolidation/site-alias/src/SiteSpecParser.php on line 144

Steps to reproduce

  • Install Drupal on PHP8,1.
  • Run a Drush command from the root of the project
  • Observe error messages in command line

Expected behavior

No errors

Actual behavior

Aforementioned error is displayed

System Configuration

PHP 8.1

@esolitos
Copy link
Contributor

AFAIK This is not happening anymore in the latest version.

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

No branches or pull requests

2 participants