PHP8.2 compatibility (#775)

* PHP8.2 compatibility

* PHP8.2 compatibility : Fixed unit tests

* PHP8.2 compatibility : Replace ENT_COMPAT by ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401

* PHP8.2 compatibility : Remove deprecated utf8_decode

* PHP8.2 compatibility : Remove HTML-ENTITIES parameter

* Removed some unused code for clarity, updated the changelog.

* More concise escape implementation and unit test to cover both modifierplugin and modifiercompiler.

* Fix htmlall unescape of quotes without mbstring too

Co-authored-by: Simon Wisselink <s.wisselink@iwink.nl>
This commit is contained in:
Progi1984
2022-11-22 21:22:57 +01:00
committed by GitHub
parent f81720941c
commit c016895166
22 changed files with 95 additions and 129 deletions

View File

@@ -15,6 +15,11 @@
*/
class CompileRegisteredObjectFunctionTest extends PHPUnit_Smarty
{
/**
* @var RegObject
*/
private $object;
public function setUp(): void
{
$this->setUpSmarty(__DIR__);