php-kafka-rest-client
php-kafka-rest-client copied to clipboard
Update dependency thecodingmachine/safe to v3
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| thecodingmachine/safe | ^2.0.0 -> ^3.0.0 |
Release Notes
thecodingmachine/safe (thecodingmachine/safe)
v3.0.0
What's Changed (tl;dr)
- Compatibility with PHP 8.4 - no more syntax deprecation warnings
- Dropped support for EOL'ed PHP versions - PHP 8.1 is the new minimum
- Separate wrappers generated for each PHP version, to make sure that the wrappers match the standard library whether you're using 8.1 or 8.4
- Lots more unsafe functions are detected (including those which return
-1on error) - Type hints should be more expansive and more accurate
- Internals cleaned up and documentation added, to make the project easier to contribute to
What's Changed (Full)
- Change misspelled occured to occurred by @spawnia in https://github.com/thecodingmachine/safe/pull/416
- Remove dev-master aliases by @shish in https://github.com/thecodingmachine/safe/pull/463
- Add dependabot config by @shish in https://github.com/thecodingmachine/safe/pull/459
- Add devcontainer config by @shish in https://github.com/thecodingmachine/safe/pull/458
- Update CI/CD workflows by @shish in https://github.com/thecodingmachine/safe/pull/460
- Bring lib/ up to php8.4 standards by @shish in https://github.com/thecodingmachine/safe/pull/466
- Bring deprecated override files up to php8.4 syntax by @shish in https://github.com/thecodingmachine/safe/pull/464
- Add auto-regenerate CI workflow by @shish in https://github.com/thecodingmachine/safe/pull/461
- Use less-old phpstan by @shish in https://github.com/thecodingmachine/safe/pull/462
- Skip
json_last_errorcheck whenJSON_THROW_ON_ERRORflag is set injson_decodeby @marmichalski in https://github.com/thecodingmachine/safe/pull/451 - CI: disable fail-fast so we see all results by @staabm in https://github.com/thecodingmachine/safe/pull/469
- Require PHP 8.1 by @simPod in https://github.com/thecodingmachine/safe/pull/433
- Remove Travis CI badge from README by @staabm in https://github.com/thecodingmachine/safe/pull/472
- fix named arg w json_decode to be consistent with php by @staabm in https://github.com/thecodingmachine/safe/pull/473
- Drop double \ from parameter types by @WyriHaximus in https://github.com/thecodingmachine/safe/pull/445
- Add custom base64_decode fcn mapping by @simPod in https://github.com/thecodingmachine/safe/pull/431
- Fix typo in "signatures" by @simPod in https://github.com/thecodingmachine/safe/pull/429
- Update testDetectFalsyFunction by @simPod in https://github.com/thecodingmachine/safe/pull/432
- Update symfony dependencies by @staabm in https://github.com/thecodingmachine/safe/pull/475
- remove no-longer-needed workaround by @shish in https://github.com/thecodingmachine/safe/pull/477
- Force generator to use PHP 8.1.x by @staabm in https://github.com/thecodingmachine/safe/pull/476
- Fix regex matching for removed functions by @shish in https://github.com/thecodingmachine/safe/pull/483
- Fix file scanning by @shish in https://github.com/thecodingmachine/safe/pull/485
- Constructor property promotions by @shish in https://github.com/thecodingmachine/safe/pull/482
- enable strict_types in generator by @shish in https://github.com/thecodingmachine/safe/pull/481
- Fix unit tests by @shish in https://github.com/thecodingmachine/safe/pull/488
- Detect nullable-default parameters and generate appropriate outputs by @shish in https://github.com/thecodingmachine/safe/pull/486
- Handle more PHPStan type edge-cases by @shish in https://github.com/thecodingmachine/safe/pull/487
- make build.sh more accurately match what the github workflow does by @shish in https://github.com/thecodingmachine/safe/pull/491
- Added lint in github actions by @staabm in https://github.com/thecodingmachine/safe/pull/493
- PHPStan: enable bleeding edge by @staabm in https://github.com/thecodingmachine/safe/pull/494
- Misc smaller changes by @shish in https://github.com/thecodingmachine/safe/pull/492
- Regenerate files based on latest code changes by @shish in https://github.com/thecodingmachine/safe/pull/489
- Convert "true" typehint to "bool" by @shish in https://github.com/thecodingmachine/safe/pull/497
- Create FUNDING.yml by @staabm in https://github.com/thecodingmachine/safe/pull/496
- detect inet_pton by @shish in https://github.com/thecodingmachine/safe/pull/498
- Automatically regenerate the files by @github-actions in https://github.com/thecodingmachine/safe/pull/478
- Generate code which better matches our formatting standards by @shish in https://github.com/thecodingmachine/safe/pull/501
- support union type from php documentation by @smoench in https://github.com/thecodingmachine/safe/pull/506
- Automatically regenerate the files by @github-actions in https://github.com/thecodingmachine/safe/pull/505
- Automatically regenerate the files by @github-actions in https://github.com/thecodingmachine/safe/pull/507
- Automatically regenerate the files by @github-actions in https://github.com/thecodingmachine/safe/pull/509
- fix unit tests by @shish in https://github.com/thecodingmachine/safe/pull/513
- remove $ so cut-and-paste works by @tacman in https://github.com/thecodingmachine/safe/pull/514
- [generator] make import tests into a unit test by @shish in https://github.com/thecodingmachine/safe/pull/517
- [docker] mark doc directories as safe for git to use by @shish in https://github.com/thecodingmachine/safe/pull/516
- [docker] exit early if build fails by @shish in https://github.com/thecodingmachine/safe/pull/515
- [generator] make import tests into a unit test by @shish in https://github.com/thecodingmachine/safe/pull/512
- [docker] mark doc directories as safe for git to use by @shish in https://github.com/thecodingmachine/safe/pull/511
- fix openssl_encrypt special case signature by @shish in https://github.com/thecodingmachine/safe/pull/518
- Remove APC bits by @shish in https://github.com/thecodingmachine/safe/pull/519
- Automatically regenerate the files by @github-actions in https://github.com/thecodingmachine/safe/pull/520
- Re-sync generator/config/specialCasesFunctions.php by @shish in https://github.com/thecodingmachine/safe/pull/521
- [ci] split "Regenerate files" and "check for differences" into two steps by @shish in https://github.com/thecodingmachine/safe/pull/524
- [ci] also split steps for auto-regen workflow by @shish in https://github.com/thecodingmachine/safe/pull/525
- [ci] fetch full history for php docs by @shish in https://github.com/thecodingmachine/safe/pull/526
- [auto-regenerate] fetch full history for docs by @shish in https://github.com/thecodingmachine/safe/pull/527
- Automatically regenerate the files by @github-actions in https://github.com/thecodingmachine/safe/pull/532
- Remove libxml_get_last_error because false is not an error in this case, fixes #438 by @shish in https://github.com/thecodingmachine/safe/pull/528
- Ignore functions which were removed pre-8.1 by @shish in https://github.com/thecodingmachine/safe/pull/529
- [cli] use ProgressBar rather than log spam by @shish in https://github.com/thecodingmachine/safe/pull/530
- ignore phpstan when phpstan claims that something is a resource, fixes #448, fixes #479, fixes #411 by @shish in https://github.com/thecodingmachine/safe/pull/533
- Remove support for deprecated functions (which will be re-added later) by @shish in https://github.com/thecodingmachine/safe/pull/536
- remove unused file from generator by @shish in https://github.com/thecodingmachine/safe/pull/535
- Add an architecture overview section to the contributor guide by @shish in https://github.com/thecodingmachine/safe/pull/534
- superficial bits in preparation for #503 by @shish in https://github.com/thecodingmachine/safe/pull/540
- Move tests for generated files into generated file test folder by @shish in https://github.com/thecodingmachine/safe/pull/538
- [ci] make rector tests less redundant by @shish in https://github.com/thecodingmachine/safe/pull/542
- Document which versions of PHP are supported by @shish in https://github.com/thecodingmachine/safe/pull/539
- [dev] function-info command by @shish in https://github.com/thecodingmachine/safe/pull/531
- [generator] reduce hard-coding of directory paths by @shish in https://github.com/thecodingmachine/safe/pull/543
- bump php version used in docker by @shish in https://github.com/thecodingmachine/safe/pull/544
- more removal of hard-coded paths by @shish in https://github.com/thecodingmachine/safe/pull/545
- Organise generator into namespaces by @shish in https://github.com/thecodingmachine/safe/pull/541
- Generate files for multiple versions by @shish in https://github.com/thecodingmachine/safe/pull/503
- Run phpstan on unit test directory by @shish in https://github.com/thecodingmachine/safe/pull/548
- [dev] also mark /app as safe during .devcontainer/build.sh by @shish in https://github.com/thecodingmachine/safe/pull/549
- [generator] fix typo by @shish in https://github.com/thecodingmachine/safe/pull/550
- [generator] strip another category of falsey text by @shish in https://github.com/thecodingmachine/safe/pull/551
- [generator] a little superficial consistency by @shish in https://github.com/thecodingmachine/safe/pull/552
- [generator] ignore benevolence properly by @shish in https://github.com/thecodingmachine/safe/pull/553
- Fix return types being incorrectly marked as resources, fixes #546 by @shish in https://github.com/thecodingmachine/safe/pull/547
- [generator] Remove redundant phpstan overrides by @shish in https://github.com/thecodingmachine/safe/pull/554
- remove superfluous null from preg_match_all, fixes #389 by @shish in https://github.com/thecodingmachine/safe/pull/556
- mark shell_exec as falsy, not nullsy, fixes #281 by @shish in https://github.com/thecodingmachine/safe/pull/557
- more docs by @shish in https://github.com/thecodingmachine/safe/pull/558
- fix signature for socket_addrinfo_bind by @shish in https://github.com/thecodingmachine/safe/pull/559
- more manual hints by @shish in https://github.com/thecodingmachine/safe/pull/560
- Mark generated files as generated by @shish in https://github.com/thecodingmachine/safe/pull/561
- Automatically regenerate the files by @github-actions in https://github.com/thecodingmachine/safe/pull/564
- Move XML type parsing into PhpStanType by @shish in https://github.com/thecodingmachine/safe/pull/563
- more detailed function-info output by @shish in https://github.com/thecodingmachine/safe/pull/565
- Sort union types by @shish in https://github.com/thecodingmachine/safe/pull/568
- Deduplicate (and unit test) logic for selecting the type-hint data source by @shish in https://github.com/thecodingmachine/safe/pull/569
- More special-cases of preferring phpdoc to phpstan by @shish in https://github.com/thecodingmachine/safe/pull/570
- Remove more redundant phpstan overrides by @shish in https://github.com/thecodingmachine/safe/pull/567
- Simplify FunctionMapReader by @shish in https://github.com/thecodingmachine/safe/pull/571
- More cases where 'resource' is incorrect by @shish in https://github.com/thecodingmachine/safe/pull/572
- Fix signature for openssl_csr_sign by @shish in https://github.com/thecodingmachine/safe/pull/573
- add regex for 'false if an error occurs', fixes #447 by @shish in https://github.com/thecodingmachine/safe/pull/574
- strpos -> str_contains by @shish in https://github.com/thecodingmachine/safe/pull/575
- strpos -> str_contains in generated files by @shish in https://github.com/thecodingmachine/safe/pull/576
- Allow
non-empty-string/non-falsey-stringin docblocks, fixes #398 by @shish in https://github.com/thecodingmachine/safe/pull/577 - add proc_open, see #424 by @shish in https://github.com/thecodingmachine/safe/pull/578
- turn foo[] into array rather than iterable, fixes #582 by @shish in https://github.com/thecodingmachine/safe/pull/583
- [ci] fail workflow if we can't fetch input data by @shish in https://github.com/thecodingmachine/safe/pull/581
- move configuration-y bits to /generator/config by @shish in https://github.com/thecodingmachine/safe/pull/580
- add ob_get_clean in 8.1-8.3 by @shish in https://github.com/thecodingmachine/safe/pull/584
- detect bzopen, fixes #407 by @shish in https://github.com/thecodingmachine/safe/pull/585
- [github] issue templates by @shish in https://github.com/thecodingmachine/safe/pull/586
- Update incorrect_function.yml by @shish in https://github.com/thecodingmachine/safe/pull/587
- Update missing_function.yml by @shish in https://github.com/thecodingmachine/safe/pull/588
- better forms by @shish in https://github.com/thecodingmachine/safe/pull/589
- Make function-info 4000x faster by @shish in https://github.com/thecodingmachine/safe/pull/590
- detect ftell (and popen), see #256 by @shish in https://github.com/thecodingmachine/safe/pull/592
- deduplicate getErrorType by @shish in https://github.com/thecodingmachine/safe/pull/591
- detect preg_replace_callback and preg_replace_callback_array, fixes #223 by @shish in https://github.com/thecodingmachine/safe/pull/593
- [generator] make ErrorType into an actual type by @shish in https://github.com/thecodingmachine/safe/pull/595
- ordered issue templates by @shish in https://github.com/thecodingmachine/safe/pull/596
- [generator] detectFalsy/detectNullsy/detectEmpty -> getErrorType by @shish in https://github.com/thecodingmachine/safe/pull/597
- remove a deprecated special case for a function which never needed to be in Safe in the first place by @shish in https://github.com/thecodingmachine/safe/pull/598
- [generator] don't duplicate special-cases list, fixes #523 by @shish in https://github.com/thecodingmachine/safe/pull/599
- Support for functions which return -1 on error, fixes #256 and others by @shish in https://github.com/thecodingmachine/safe/pull/600
- add return statements to functionsList.php by @shish in https://github.com/thecodingmachine/safe/pull/601
- phpunit version bump for generator by @shish in https://github.com/thecodingmachine/safe/pull/602
- more generator unit tests by @shish in https://github.com/thecodingmachine/safe/pull/603
- [generator] phpstan is required to run, not just to develop by @shish in https://github.com/thecodingmachine/safe/pull/604
- Drop dependency on thecodingmachine/phpstan-strict-rules by @shish in https://github.com/thecodingmachine/safe/pull/605
- more testing by @shish in https://github.com/thecodingmachine/safe/pull/606
- drop unused dependency on coveralls by @shish in https://github.com/thecodingmachine/safe/pull/607
- use phpstan 2.X by @shish in https://github.com/thecodingmachine/safe/pull/608
- format by @shish in https://github.com/thecodingmachine/safe/pull/609
- use phpstan 2 to check generated files as well as generator by @shish in https://github.com/thecodingmachine/safe/pull/611
- Add a newline at the end of generated composer.json by @shish in https://github.com/thecodingmachine/safe/pull/612
- detect dir() by @shish in https://github.com/thecodingmachine/safe/pull/614
finfo, despite being lowercase, is a class by @shish in https://github.com/thecodingmachine/safe/pull/615
New Contributors
- @spawnia made their first contribution in https://github.com/thecodingmachine/safe/pull/416
- @shish made their first contribution in https://github.com/thecodingmachine/safe/pull/463
- @marmichalski made their first contribution in https://github.com/thecodingmachine/safe/pull/451
- @staabm made their first contribution in https://github.com/thecodingmachine/safe/pull/469
- @WyriHaximus made their first contribution in https://github.com/thecodingmachine/safe/pull/445
- @smoench made their first contribution in https://github.com/thecodingmachine/safe/pull/506
- @tacman made their first contribution in https://github.com/thecodingmachine/safe/pull/514
Full Changelog: https://github.com/thecodingmachine/safe/compare/v2.5.0...v3.0.0
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.