Skip to content

Conversation

@f2cmb
Copy link
Contributor

@f2cmb f2cmb commented Nov 20, 2025

This a rework on the declined previous PR : #22002

It fixes #21794 after creating a new branch based on up-to-date 11.0/bugfixes

Only PHPDoc annotations.

Got a doubt though on showFor* methods in src/Change_Ticket.php and src/Change_Problem.php : PHPStan accept ONLY void|false but adding a return; statement could be an option (return + void is rejected by PHPStan so i'm open to any suggestion on those cases).

@f2cmb f2cmb requested a review from cedric-anne November 20, 2025 15:46
@f2cmb f2cmb assigned trasher and froozeify and unassigned trasher and froozeify Nov 20, 2025
@f2cmb f2cmb requested review from froozeify and trasher November 20, 2025 15:46
@f2cmb f2cmb marked this pull request as ready for review November 20, 2025 15:47
@cedric-anne
Copy link
Member

Got a doubt though on showFor* methods

IMHO, you can replace return false; by return;. The return value of these methods is never used.

@f2cmb f2cmb requested a review from trasher November 21, 2025 08:05
@f2cmb
Copy link
Contributor Author

f2cmb commented Nov 21, 2025

Lint checks are broken ? Did the checks locally and no problems...

@trasher
Copy link
Contributor

trasher commented Nov 21, 2025

Lint checks are broken ? Did the checks locally and no problems...

  curl error 28 while downloading https://repo.packagist.org/packages.json: R  
  ecv failure: Connection reset by peer  

There are network problems today with some services... :/

Copy link
Contributor

@trasher trasher left a comment

Choose a reason for hiding this comment

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

Excepted useless changes (see comments), LGTM.

@trasher trasher merged commit 79932d2 into glpi-project:11.0/bugfixes Nov 24, 2025
2 checks passed
@cedric-anne cedric-anne added this to the 11.0.3 milestone Nov 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add types on ITIL related classes

4 participants