NatLibFi / Skosmos

Thesaurus and controlled vocabulary browser using SKOS and SPARQL
Other
229 stars 95 forks source link

Skosmos 2: Fix PHP 8.1 deprecation message that broke content language links #1702

Closed osma closed 1 month ago

osma commented 1 month ago

Reasons for creating this PR

PHP deprecations warnings may break content language switching links. See #1701

This PR fixes the problem by ensuring that str_replace cannot be called with a null value as the third parameter.

Link to relevant issue(s), if any

Description of the changes in this PR

Known problems or uncertainties in this PR

Checklist

sonarcloud[bot] commented 1 month ago

Quality Gate Failed Quality Gate failed

Failed conditions
57 Security Hotspots
C Maintainability Rating on New Code (required ≥ A)
D Reliability Rating on New Code (required ≥ A)
E Security Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint