Skip to content

Conversation

@j0k3r
Copy link
Owner

@j0k3r j0k3r commented Sep 26, 2025

No description provided.

@j0k3r j0k3r requested review from Kdecherf and jtojnar September 26, 2025 13:55
@codecov
Copy link

codecov bot commented Sep 26, 2025

Codecov Report

❌ Patch coverage is 90.00000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 95.65%. Comparing base (5e08227) to head (4b46b35).
⚠️ Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
src/Graby.php 75.00% 1 Missing ⚠️
src/HttpClient/Plugin/CookiePlugin.php 50.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master     #379      +/-   ##
============================================
+ Coverage     95.33%   95.65%   +0.32%     
+ Complexity      753      695      -58     
============================================
  Files            16       16              
  Lines          1759     1866     +107     
============================================
+ Hits           1677     1785     +108     
+ Misses           82       81       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@j0k3r j0k3r added this to the 3.0.0 milestone Sep 26, 2025
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks like upstream PHP 8.1 security support is ending in three months. Though, Debian 11 bullseye, which ships PHP 7.4, will continue to be supported for one more year. And while I would typically follow Debian, the improvements in PHP 8 do sound quite tempting.

Copy link
Owner Author

@j0k3r j0k3r Sep 26, 2025

Choose a reason for hiding this comment

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

I tend to be relax on PHP version but it seems we are stuck in PHP 7.4 for a while now when major version of recent lib (monolog, doctrine, symfony, etc.) are pushing to 8.2 instead.
And to be fair, Rector is helping so much to handle version upgrade.

Copy link
Collaborator

Choose a reason for hiding this comment

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

We can probably drop the options resolver and just use PHP 8 named arguments in a constructor. But that should go to later PR.

private const FIXTURE_DIRECTORY = __DIR__ . '/../../tests/fixtures/content';
private const MATCHING_ERROR_COMMENT = 'TODO: Rector was unable to evaluate this Graby config.';
private const IGNORE_COMMENT = 'Rector: do not add mock client';
private BetterNodeFinder $betterNodeFinder;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I assume these changes are made by rector but have no bearing on ability to run the code. It would be easier to review if they were split into a separate commit.

Copy link
Owner Author

Choose a reason for hiding this comment

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

Yeah it was done by rector as maintenance folder is part of the config.

@j0k3r j0k3r requested a review from jtojnar September 26, 2025 19:39
@j0k3r j0k3r mentioned this pull request Sep 26, 2025
@j0k3r j0k3r merged commit e64248f into master Sep 30, 2025
8 of 10 checks passed
@j0k3r j0k3r deleted the fix/php-8.2 branch September 30, 2025 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants