laminas / laminas-component-installer

Composer plugin for injecting modules and configuration providers into application configuration
https://docs.laminas.dev/laminas-component-installer/
BSD 3-Clause "New" or "Revised" License
27 stars 12 forks source link

Ensure no `null` values are not passed to `is_dir` #40

Closed arueckauer closed 2 years ago

arueckauer commented 2 years ago
Q A
QA yes

Description

The missing default value for property projectRoot in Laminas\ComponentInstaller\ComponentInstaller can cause a null value being passed to is_dir which throws a deprecation notice in PHP 8.1. By adding an empty string as default value, this is prevented.

Fixes #36

arueckauer commented 2 years ago

Creating a new PR with full PHP 8.1 support where this change is included, see #44 .