75 Commits

Author SHA1 Message Date
Jordi Boggiano
443e460166 Convert to native type hint 2025-11-12 09:42:24 +01:00
Jordi Boggiano
83acb6c128 Fix CI run (#25) 1.2.1 2025-11-11 11:33:05 +01:00
Jordi Boggiano
89820faf47 Merge pull request #24 from php-fig/mixed-levels
Allow mixed types for $level and normalize them in case non-int|string levels are passed in
2025-11-11 11:25:52 +01:00
Jordi Boggiano
07b4e73a9e Static calls 2025-11-11 11:16:36 +01:00
Jordi Boggiano
ad1ca5d7e3 Make normalizeLevel private again 2025-11-11 10:57:20 +01:00
Jordi Boggiano
1535bd629b Narrow type of $level for TestLogger specific methods 2025-11-11 10:50:00 +01:00
Jordi Boggiano
ae47763a66 Fixes 2025-11-11 10:44:52 +01:00
Jordi Boggiano
dfa804a0c0 Allow mixed types for $level and normalize them in case non-int|string levels are passed in
Fixes #10
Fixes #22
2025-11-11 10:23:11 +01:00
Jordi Boggiano
fde37ea969 Merge pull request #19 from sasezaki/has_record_array
array offset (`level`, `message`, `context`) should not be guarantee for hasRecord()
2025-11-11 09:08:13 +01:00
Jordi Boggiano
ea028737e0 Merge branch 'main' into has_record_array 2025-11-11 09:06:47 +01:00
Jordi Boggiano
47dd6bab2a Merge pull request #21 from derrabus/bugfix/context-too-narrow
Widen context type to mixed[]
2025-11-11 09:03:10 +01:00
Alexander M. Turek
839607c4ca Widen context type to mixed[] 2025-10-31 08:44:12 +01:00
sasezaki
c3d3b7563e array offset should not be guarantee for hasRecord() 2025-10-30 00:08:31 +09:00
Jordi Boggiano
a6c6d97e28 Merge pull request #12 from sasezaki/cs202510
CS related fixes
1.2.0
2025-10-27 15:03:49 +01:00
Jordi Boggiano
60dfe4a7ed Merge pull request #13 from sasezaki/attribute202510
refine .gitattributes
2025-10-27 15:03:04 +01:00
Jordi Boggiano
c9642cd00b Merge pull request #15 from sasezaki/doctype
More precise type annotations
2025-10-27 15:02:30 +01:00
Jordi Boggiano
da1b3c04f9 Merge pull request #16 from sasezaki/interpolate
feature: Add optional PSR-3 message placeholder interpolation to TestLogger
2025-10-27 15:02:23 +01:00
Jordi Boggiano
66134be780 Merge pull request #14 from sasezaki/hasRecord-phpdoc
Update hasRecord() PHPDoc type hint, reflecting the actual method implementation
2025-10-27 14:29:08 +01:00
sasezaki
1ec60231b2 Add optional PSR-3 message placeholder interpolation to TestLogger 2025-10-25 11:25:42 +09:00
sasezaki
c13e483db8 More precise type annotations 2025-10-25 10:38:29 +09:00
sasezaki
fe1a1fa591 Updated - hasRecord() PHPDoc type hint, reflecting the actual method implementation 2025-10-04 22:53:49 +09:00
sasezaki
c30b372e33 refine .gitattributes 2025-10-04 22:23:36 +09:00
sasezaki
f5b386aefd Removed useless installed_paths setting 2025-10-04 22:17:11 +09:00
sasezaki
878f01f85a Apply phpcbf & fix for Line exceeds 120 characters 2025-10-04 22:15:50 +09:00
Alessandro Lai
eb640f04c2 Merge pull request #8 from sasezaki/phpunit10
Test with PHPUnit 10, 11
2025-02-02 18:16:44 +01:00
Alessandro Lai
5452d20e0e Merge pull request #7 from sasezaki/php84
Add PHP 8.4 to test matrix
2025-02-02 13:15:38 +01:00
Alessandro Lai
adc62aaf2b Merge pull request #6 from sasezaki/composer-keywords
Added testing keyword to promote adding as require-dev
2025-02-02 13:15:20 +01:00
Alessandro Lai
bf46e8e948 Run CI on cron to avoid stale 2025-02-02 13:09:39 +01:00
sasezaki
d7f7a96bc9 PHPUnit providers should be static method 2025-02-02 18:42:42 +09:00
sasezaki
66b84a78a7 test with PHPUnit 10, 11 2025-02-02 18:40:16 +09:00
sasezaki
41d1f4b664 Add PHP 8.4 to test matrix 2025-02-02 18:37:26 +09:00
sasezaki
38385463f0 Added testing keyword to promote adding as require-dev
see https://getcomposer.org/doc/04-schema.md#keywords
2025-02-02 18:27:16 +09:00
Ralf Lang
aadfa242f2 Merge pull request #5 from php-fig/UpdateCI
Add more recent PHP versions to CI
2023-11-05 10:35:16 +01:00
Ralf Lang
254c924fec Add more recent PHP versions to CI 2023-11-04 16:56:35 +01:00
Ralf Lang
02d6eaf8b0 Update log timestamp for release 1.1.0 2022-10-18 07:33:27 +02:00
Ralf Lang
1d0c40fb95 Merge pull request #2 from GromNaN/setup/v1.1
v1.1 - import classes from psr/log 1.1, compatible with psr/log 2.0 and 3.0
2022-09-08 18:16:45 +02:00
Ralf Lang
e060b66d95 Merge branch 'main' into setup/v1.1 2022-09-08 18:14:02 +02:00
Ralf Lang
a8976008d7 Merge pull request #3 from ralflang/main
Fixup changelog and php requirement before first release
1.0.0
2022-09-07 06:36:07 +02:00
Ralf Lang
ccd7a4b674 Add release date 2022-09-07 06:33:28 +02:00
Jérôme Tamarelle
665641d90f Import test classes from psr/log 1.1.4
Fix compatibility with PHPUnit and psr/log 3.0
Modernize code for PHP 8.0
Materialize magical methods from TestLogger::__call
2022-08-22 17:42:19 +02:00
Ralf Lang
8e034d87e8 Finally fix the headline. 2022-08-15 14:02:58 +02:00
Ralf Lang
faeaeb1a7f Fixup omissions in readme 2022-08-15 13:29:00 +02:00
Ralf Lang
21ead6c332 Mostly verbatim conversion from psr/log-util to fig/log-test. 2022-08-15 11:48:23 +02:00
Jérôme Tamarelle
0e8a938210 Fix markdown table 2022-08-15 11:48:23 +02:00
Jérôme Tamarelle
00eca819f8 Setup v1.0 with empty package 2022-01-11 21:48:27 +01:00
Alessandro Lai
09fb475a69 Merge pull request #3 from XedinUnknown/always-continue-all-jobs
Always continue all jobs even if other jobs fail
2021-06-22 16:13:25 +02:00
Anton Ukhanev
3c8b7b4175 Always continue all jobs even if other jobs fail
This will allow contributors to detect problems faster and easier, avoiding scenarios where a problem is corrected only to find that there is a different problem that was not visible in CI logs before on e.g. another PHP version.

See discussion: https://github.com/php-fig/log-util/pull/2#discussion_r655343642
2021-06-21 21:09:58 +02:00
Alessandro Lai
223de2b29b Merge pull request #1 from XedinUnknown/task/project-setup
Setup project
2021-06-17 14:41:58 +02:00
Anton Ukhanev
21c4fbaa27 Correct PHP 5.4 include
Was missing value for an option
2021-06-17 10:56:09 +02:00
Anton Ukhanev
e2c8d2ce25 PHP 5.3 is no longer experimental 2021-06-17 10:55:26 +02:00