Skip to content

Commit

Permalink
Merge pull request #683 from WordPress/dependabot/composer/phpstan/ph…
Browse files Browse the repository at this point in the history
…pstan-1.12.5

Bump phpstan/phpstan from 1.12.4 to 1.12.5
  • Loading branch information
ernilambar authored Oct 1, 2024
2 parents 397a5bb + 92b85e3 commit e8c8b11
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion includes/Checker/Checks/Plugin_Repo/Trademarks_Check.php
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ private function has_trademarked_slug( $slug ) {
$has_trademarked_slug = false;

foreach ( self::TRADEMARK_SLUGS as $trademark ) {
if ( '-' === $trademark[-1] ) {
if ( str_ends_with( $trademark, '-' ) ) {
// Trademarks ending in "-" indicate slug cannot begin with that term.
if ( 0 === strpos( $slug, $trademark ) ) {
$has_trademarked_slug = $trademark;
Expand Down

0 comments on commit e8c8b11

Please sign in to comment.