Skip to content

Commit

Permalink
update the dependencies and set the correct min php version
Browse files Browse the repository at this point in the history
  • Loading branch information
ingeniumed committed May 31, 2024
1 parent 5539d36 commit d60bba6
Show file tree
Hide file tree
Showing 11 changed files with 252 additions and 204 deletions.
3 changes: 0 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@
"dealerdirect/phpcodesniffer-composer-installer": true,
"mnsami/composer-custom-directory-installer": false
},
"platform": {
"php": "8.0.2"
},
"sort-packages": true
}
}
338 changes: 184 additions & 154 deletions composer.lock

Large diffs are not rendered by default.

50 changes: 22 additions & 28 deletions vendor/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,27 @@
"packages": [
{
"name": "masterminds/html5",
"version": "2.8.1",
"version_normalized": "2.8.1.0",
"version": "2.9.0",
"version_normalized": "2.9.0.0",
"source": {
"type": "git",
"url": "https://github.com/Masterminds/html5-php.git",
"reference": "f47dcf3c70c584de14f21143c55d9939631bc6cf"
"reference": "f5ac2c0b0a2eefca70b2ce32a5809992227e75a6"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Masterminds/html5-php/zipball/f47dcf3c70c584de14f21143c55d9939631bc6cf",
"reference": "f47dcf3c70c584de14f21143c55d9939631bc6cf",
"url": "https://api.github.com/repos/Masterminds/html5-php/zipball/f5ac2c0b0a2eefca70b2ce32a5809992227e75a6",
"reference": "f5ac2c0b0a2eefca70b2ce32a5809992227e75a6",
"shasum": ""
},
"require": {
"ext-dom": "*",
"php": ">=5.3.0"
},
"require-dev": {
"phpunit/phpunit": "^4.8.35 || ^5.7.21 || ^6 || ^7 || ^8"
"phpunit/phpunit": "^4.8.35 || ^5.7.21 || ^6 || ^7 || ^8 || ^9"
},
"time": "2023-05-10T11:58:31+00:00",
"time": "2024-03-31T07:05:07+00:00",
"type": "library",
"extra": {
"branch-alias": {
Expand Down Expand Up @@ -66,7 +66,7 @@
],
"support": {
"issues": "https://github.com/Masterminds/html5-php/issues",
"source": "https://github.com/Masterminds/html5-php/tree/2.8.1"
"source": "https://github.com/Masterminds/html5-php/tree/2.9.0"
},
"install-path": "../masterminds/html5"
},
Expand Down Expand Up @@ -216,17 +216,17 @@
},
{
"name": "symfony/polyfill-ctype",
"version": "v1.28.0",
"version_normalized": "1.28.0.0",
"version": "v1.29.0",
"version_normalized": "1.29.0.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-ctype.git",
"reference": "ea208ce43cbb04af6867b4fdddb1bdbf84cc28cb"
"reference": "ef4d7e442ca910c4764bce785146269b30cb5fc4"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/ea208ce43cbb04af6867b4fdddb1bdbf84cc28cb",
"reference": "ea208ce43cbb04af6867b4fdddb1bdbf84cc28cb",
"url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/ef4d7e442ca910c4764bce785146269b30cb5fc4",
"reference": "ef4d7e442ca910c4764bce785146269b30cb5fc4",
"shasum": ""
},
"require": {
Expand All @@ -238,12 +238,9 @@
"suggest": {
"ext-ctype": "For best performance"
},
"time": "2023-01-26T09:26:14+00:00",
"time": "2024-01-29T20:11:03+00:00",
"type": "library",
"extra": {
"branch-alias": {
"dev-main": "1.28-dev"
},
"thanks": {
"name": "symfony/polyfill",
"url": "https://github.com/symfony/polyfill"
Expand Down Expand Up @@ -281,7 +278,7 @@
"portable"
],
"support": {
"source": "https://github.com/symfony/polyfill-ctype/tree/v1.28.0"
"source": "https://github.com/symfony/polyfill-ctype/tree/v1.29.0"
},
"funding": [
{
Expand All @@ -301,17 +298,17 @@
},
{
"name": "symfony/polyfill-mbstring",
"version": "v1.28.0",
"version_normalized": "1.28.0.0",
"version": "v1.29.0",
"version_normalized": "1.29.0.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-mbstring.git",
"reference": "42292d99c55abe617799667f454222c54c60e229"
"reference": "9773676c8a1bb1f8d4340a62efe641cf76eda7ec"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/42292d99c55abe617799667f454222c54c60e229",
"reference": "42292d99c55abe617799667f454222c54c60e229",
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/9773676c8a1bb1f8d4340a62efe641cf76eda7ec",
"reference": "9773676c8a1bb1f8d4340a62efe641cf76eda7ec",
"shasum": ""
},
"require": {
Expand All @@ -323,12 +320,9 @@
"suggest": {
"ext-mbstring": "For best performance"
},
"time": "2023-07-28T09:04:16+00:00",
"time": "2024-01-29T20:11:03+00:00",
"type": "library",
"extra": {
"branch-alias": {
"dev-main": "1.28-dev"
},
"thanks": {
"name": "symfony/polyfill",
"url": "https://github.com/symfony/polyfill"
Expand Down Expand Up @@ -367,7 +361,7 @@
"shim"
],
"support": {
"source": "https://github.com/symfony/polyfill-mbstring/tree/v1.28.0"
"source": "https://github.com/symfony/polyfill-mbstring/tree/v1.29.0"
},
"funding": [
{
Expand Down
22 changes: 11 additions & 11 deletions vendor/composer/installed.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
'name' => 'automattic/vip-block-data-api',
'pretty_version' => 'dev-trunk',
'version' => 'dev-trunk',
'reference' => '6de847ac4eebc3cb19cb0bb417f8bf5c5f9be643',
'reference' => '5539d360dc829a7ee143d046a5783789651d9e32',
'type' => 'wordpress-plugin',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand All @@ -13,16 +13,16 @@
'automattic/vip-block-data-api' => array(
'pretty_version' => 'dev-trunk',
'version' => 'dev-trunk',
'reference' => '6de847ac4eebc3cb19cb0bb417f8bf5c5f9be643',
'reference' => '5539d360dc829a7ee143d046a5783789651d9e32',
'type' => 'wordpress-plugin',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
'dev_requirement' => false,
),
'masterminds/html5' => array(
'pretty_version' => '2.8.1',
'version' => '2.8.1.0',
'reference' => 'f47dcf3c70c584de14f21143c55d9939631bc6cf',
'pretty_version' => '2.9.0',
'version' => '2.9.0.0',
'reference' => 'f5ac2c0b0a2eefca70b2ce32a5809992227e75a6',
'type' => 'library',
'install_path' => __DIR__ . '/../masterminds/html5',
'aliases' => array(),
Expand All @@ -47,18 +47,18 @@
'dev_requirement' => false,
),
'symfony/polyfill-ctype' => array(
'pretty_version' => 'v1.28.0',
'version' => '1.28.0.0',
'reference' => 'ea208ce43cbb04af6867b4fdddb1bdbf84cc28cb',
'pretty_version' => 'v1.29.0',
'version' => '1.29.0.0',
'reference' => 'ef4d7e442ca910c4764bce785146269b30cb5fc4',
'type' => 'library',
'install_path' => __DIR__ . '/../symfony/polyfill-ctype',
'aliases' => array(),
'dev_requirement' => false,
),
'symfony/polyfill-mbstring' => array(
'pretty_version' => 'v1.28.0',
'version' => '1.28.0.0',
'reference' => '42292d99c55abe617799667f454222c54c60e229',
'pretty_version' => 'v1.29.0',
'version' => '1.29.0.0',
'reference' => '9773676c8a1bb1f8d4340a62efe641cf76eda7ec',
'type' => 'library',
'install_path' => __DIR__ . '/../symfony/polyfill-mbstring',
'aliases' => array(),
Expand Down
2 changes: 1 addition & 1 deletion vendor/masterminds/html5/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ HTML5 provides the following features.
- Interoperability with [QueryPath](https://github.com/technosophos/querypath)
- Runs on **PHP** 5.3.0 or newer

[![Build Status](https://travis-ci.org/Masterminds/html5-php.png?branch=master)](https://travis-ci.org/Masterminds/html5-php)
[![CI](https://github.com/Masterminds/html5-php/actions/workflows/ci.yaml/badge.svg)](https://github.com/Masterminds/html5-php/actions/workflows/ci.yaml)
[![Latest Stable Version](https://poser.pugx.org/masterminds/html5/v/stable.png)](https://packagist.org/packages/masterminds/html5)
[![Code Coverage](https://scrutinizer-ci.com/g/Masterminds/html5-php/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/Masterminds/html5-php/?branch=master)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/Masterminds/html5-php/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/Masterminds/html5-php/?branch=master)
Expand Down
2 changes: 1 addition & 1 deletion vendor/masterminds/html5/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"php" : ">=5.3.0"
},
"require-dev": {
"phpunit/phpunit" : "^4.8.35 || ^5.7.21 || ^6 || ^7 || ^8"
"phpunit/phpunit" : "^4.8.35 || ^5.7.21 || ^6 || ^7 || ^8 || ^9"
},
"autoload": {
"psr-4": {"Masterminds\\": "src"}
Expand Down
18 changes: 18 additions & 0 deletions vendor/masterminds/html5/src/HTML5/Elements.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,24 @@ class Elements
*/
const BLOCK_ONLY_INLINE = 128;

/**
* Elements with optional end tags that cause auto-closing of previous and parent tags,
* as example most of the table related tags, see https://www.w3.org/TR/html401/struct/tables.html
* Structure is as follows:
* TAG-NAME => [PARENT-TAG-NAME-TO-CLOSE1, PARENT-TAG-NAME-TO-CLOSE2, ...].
*
* Order is important, after auto-closing one parent with might have to close also their parent.
*
* @var array<string, string[]>
*/
public static $optionalEndElementsParentsToClose = array(
'tr' => array('td', 'tr'),
'td' => array('td', 'th'),
'th' => array('td', 'th'),
'tfoot' => array('td', 'th', 'tr', 'tbody', 'thead'),
'tbody' => array('td', 'th', 'tr', 'thead'),
);

/**
* The HTML5 elements as defined in http://dev.w3.org/html5/markup/elements.html.
*
Expand Down
10 changes: 10 additions & 0 deletions vendor/masterminds/html5/src/HTML5/Parser/DOMTreeBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,16 @@ public function startTag($name, $attributes = array(), $selfClosing = false)
$this->onlyInline = null;
}

// some elements as table related tags might have optional end tags that force us to auto close multiple tags
// https://www.w3.org/TR/html401/struct/tables.html
if ($this->current instanceof \DOMElement && isset(Elements::$optionalEndElementsParentsToClose[$lname])) {
foreach (Elements::$optionalEndElementsParentsToClose[$lname] as $parentElName) {
if ($this->current instanceof \DOMElement && $this->current->tagName === $parentElName) {
$this->autoclose($parentElName);
}
}
}

try {
$prefix = ($pos = strpos($lname, ':')) ? substr($lname, 0, $pos) : '';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ public function getColumnOffset()
*
* @return string The current character.
*/
#[\ReturnTypeWillChange]
public function current()
{
return $this->data[$this->char];
Expand All @@ -192,6 +193,7 @@ public function current()
* Advance the pointer.
* This is part of the Iterator interface.
*/
#[\ReturnTypeWillChange]
public function next()
{
++$this->char;
Expand All @@ -200,6 +202,7 @@ public function next()
/**
* Rewind to the start of the string.
*/
#[\ReturnTypeWillChange]
public function rewind()
{
$this->char = 0;
Expand All @@ -210,6 +213,7 @@ public function rewind()
*
* @return bool Whether the current pointer location is valid.
*/
#[\ReturnTypeWillChange]
public function valid()
{
return $this->char < $this->EOF;
Expand Down Expand Up @@ -324,6 +328,7 @@ public function peek()
return false;
}

#[\ReturnTypeWillChange]
public function key()
{
return $this->char;
Expand Down
3 changes: 0 additions & 3 deletions vendor/symfony/polyfill-ctype/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@
},
"minimum-stability": "dev",
"extra": {
"branch-alias": {
"dev-main": "1.28-dev"
},
"thanks": {
"name": "symfony/polyfill",
"url": "https://github.com/symfony/polyfill"
Expand Down
3 changes: 0 additions & 3 deletions vendor/symfony/polyfill-mbstring/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@
},
"minimum-stability": "dev",
"extra": {
"branch-alias": {
"dev-main": "1.28-dev"
},
"thanks": {
"name": "symfony/polyfill",
"url": "https://github.com/symfony/polyfill"
Expand Down

0 comments on commit d60bba6

Please sign in to comment.