Skip to content

Conversation

@sukhwinder33445
Copy link
Contributor

@sukhwinder33445 sukhwinder33445 commented Dec 1, 2025

resolves #60

@cla-bot cla-bot bot added the cla/signed label Dec 1, 2025
@sukhwinder33445 sukhwinder33445 marked this pull request as draft December 1, 2025 08:01
@sukhwinder33445 sukhwinder33445 marked this pull request as ready for review December 4, 2025 12:42
Copy link

@BastianLedererIcinga BastianLedererIcinga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

Errors like:
- Deprecated: ipl\Stdlib\Str::trimSplit(): Implicitly marking parameter $limit as nullable is deprecated, the explicit nullable type must be used instead
`scanDirectories` was set to `/usr/share/icinga-php` to simplify local testing, 
as both the Icinga PHP Library and Icinga PHP Thirdparty are installed there in
our development environment. Our individual PHP library components, which make
up these libraries, are self-contained, as they define all necessary
dependencies themselves. This then requires testing with exactly these
dependencies instead of an arbitrary folder that could contain anything, e.g.,
dependencies in unexpected versions or dependencies that have not yet been
defined. For remote and local testing, `composer install` must be executed and
tests must be performed with exactly the resulting dependencies. Since PHPStan
uses the Composer autoloader by default, if available, `scanDirectories` does
not need to be defined at all.

- #62 makes it superfluous for github actions
PhpUnit Test:
```
-  1 test triggered 2 PHP warnings:

  1) /home/runner/work/ipl-stdlib/ipl-stdlib/src/Filter.php:540
  Undefined property: stdClass::$foo

  Triggered by:

  * ipl\Tests\Stdlib\FilterTest::testConditionsHandleMissingColumnsProperly (6 times)
    /home/runner/work/ipl-stdlib/ipl-stdlib/tests/FilterTest.php:624
...
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PHP 8.4/8.5 Support

3 participants