Skip to content

Commit

Permalink
Adds support for PHP < 8.0 (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibndawood authored May 9, 2024
1 parent ba99381 commit ba25941
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/php/compat-checker/src/Checks/CompatCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public function remove_dismissable_notices() {
$plugin_basename = plugin_basename( $this->plugin_data['File'] );
$all_notices = WC_Admin_Notices::get_notices();
foreach ( $all_notices as $notice_name ) {
if ( true === str_starts_with( $notice_name, $plugin_basename ) ) {
if ( 0 === strpos( $notice_name, $plugin_basename ) ) {
WC_Admin_Notices::remove_notice( $notice_name );
}
}
Expand Down

0 comments on commit ba25941

Please sign in to comment.