Hey @danmichaelo + @S1SYPHOS !
Today I made a little update to one of my projects, where I'm glad to use php-sru-client, and mentioned composer updated this package from version 0.7.1 to 0.7.2. After that my script ended with the following error, while doing a SRU request:
"PHP message: PHP Parse error: syntax error, unexpected '|', expecting variable (T_VARIABLE) in /server/path/vendor/scriptotek/sru-client/src/Record.php on line 52"
After some investigation and code research I came up with the following 3 things:
- I don't know why composer only today updated to
0.7.2; I initiated the project only some weeks ago = when 0.7.2 was still out.
- I think the changes from
0.7.1 to 0.7.2 introduced PHP 8.0 as minimum PHP version.
- This change is the cause of my/the error message with PHP 7.4
- The
CHANGELOG.md misses the IMHO important change for 0.7.2 (see 2.).
My current fix is to pin this package (by composer) to 0.7.1, to use it with PHP 7.4.
I also will add some notes to CHANGELOG.md and make a PR.
Thanks for fixing in advance and KR!
Hey @danmichaelo + @S1SYPHOS !
Today I made a little update to one of my projects, where I'm glad to use
php-sru-client, and mentioned composer updated this package from version0.7.1to0.7.2. After that my script ended with the following error, while doing a SRU request:After some investigation and code research I came up with the following 3 things:
0.7.2; I initiated the project only some weeks ago = when0.7.2was still out.0.7.1to0.7.2introduced PHP 8.0 as minimum PHP version.CHANGELOG.mdmisses the IMHO important change for0.7.2(see 2.).My current fix is to pin this package (by composer) to
0.7.1, to use it with PHP 7.4.I also will add some notes to
CHANGELOG.mdand make a PR.Thanks for fixing in advance and KR!