Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 301934

Replace preg_match() with PHP 8's str_starts_with()/str_ends_with() or similar

$
0
0

Problem/Motivation

There are some preg_match calls that can be replaced with either str_starts_with(),str_ends_with() or similar. PHPStorm has an inspection that runs this check automatically to most cases

Steps to reproduce

Proposed resolution

Do it

Remaining tasks

TBD

User interface changes

N/A

API changes

N/A

Data model changes

N/A

Release notes snippet

N/A


Viewing all articles
Browse latest Browse all 301934

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>