Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

Fix partially supported callables deprecation #18

Merged
merged 1 commit into from
Aug 29, 2022
Merged

Fix partially supported callables deprecation #18

merged 1 commit into from
Aug 29, 2022

Conversation

jrmajor
Copy link
Contributor

@jrmajor jrmajor commented Aug 21, 2022

@coveralls
Copy link

coveralls commented Aug 29, 2022

Pull Request Test Coverage Report for Build 2950452412

  • 13 of 17 (76.47%) changed or added relevant lines in 2 files are covered.
  • 26 unchanged lines in 3 files lost coverage.
  • Overall coverage remained the same at 37.615%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/PolyfillTrait7.php 0 4 0.0%
Files with Coverage Reduction New Missed Lines %
src/PolyfillTrait.php 1 0%
src/aliases.php 4 0%
src/PolyfillTrait7.php 21 0%
Totals Coverage Status
Change from base Build 2950439967: 0.0%
Covered Lines: 41
Relevant Lines: 109

💛 - Coveralls

@@ -18,7 +18,7 @@ trait PolyfillTrait6
{
public function expectException($exception)
{
if (\is_callable(['parent', 'expectException'])) {
if (\is_callable([parent::class, 'expectException'])) {
Copy link
Member

Choose a reason for hiding this comment

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

can we have a PHP CS Fixer rule that is automating that, pls? :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There is no way to determine whether ['parent', 'expectException'] is supposed to be a callable or just an array.

Copy link
Member

Choose a reason for hiding this comment

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

but if it's passed as literal to is_callable etc, we can do the fix

@keradus
Copy link
Member

keradus commented Aug 29, 2022

Can we add all needed 8.x to CI, so we are sure the fix is enough to claim the 8.2 support?

@jrmajor
Copy link
Contributor Author

jrmajor commented Aug 29, 2022

Can we add all needed 8.x to CI, so we are sure the fix is enough to claim the 8.2 support?

Not sure I follow, what do you mean?

@keradus
Copy link
Member

keradus commented Aug 29, 2022

#19

@jrmajor
Copy link
Contributor Author

jrmajor commented Aug 29, 2022

Sorry, I've mistaken this for PHPUnitGoodPractices/Traits#55 :) Rebased onto #19.

@keradus
Copy link
Member

keradus commented Aug 29, 2022

no worry. thanks for the work! i will release new polyfill version now

@keradus keradus merged commit 625622f into PHPUnitGoodPractices:main Aug 29, 2022
@jrmajor jrmajor deleted the php82 branch August 29, 2022 17:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants