composer-git-hooks icon indicating copy to clipboard operation
composer-git-hooks copied to clipboard

Deprecated: trim() with PHP 8.2

Open yovannygomez opened this issue 2 years ago • 3 comments
trafficstars

I have updated my project to PHP 8.2 and the warning has started to appear. My brainmaestro/composer-git-hooks version of is v2.8.5

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /vendor/brainmaestro/composer-git-hooks/src/helpers.php on line 54

yovannygomez avatar Jun 05 '23 19:06 yovannygomez

I have fixed this and it has been merged to master but it was not tagged yet, I have no idea why.

You can check it here: https://github.com/BrainMaestro/composer-git-hooks/pull/137

ZejdCicak avatar Jun 19 '23 10:06 ZejdCicak

@BrainMaestro – Can we get this tagged please. 🙏🏻 🙂

normanlolx avatar Oct 06 '23 08:10 normanlolx

@ZejdCicak you're right. I already saw your merged. The commit id was 3d197c4. But I don't know how we can generate a new tag.

yovannygomez avatar Oct 06 '23 16:10 yovannygomez