readability: import fixed html5-php

This commit is contained in:
Andrew Dolgov 2022-07-31 09:42:00 +03:00
parent a8b0bce008
commit ff7e99b986
No known key found for this signature in database
GPG Key ID: 1A56B4FA25D4AF2A
5 changed files with 13 additions and 10 deletions

View File

@ -242,7 +242,7 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https://dev.tt-rss.org/fox/html5-php.git", "url": "https://dev.tt-rss.org/fox/html5-php.git",
"reference": "f640ac1bdddff06ea333a920c95bbad8872429ab" "reference": "1e0033a694ce576deba7c59c1da56c76e9e42109"
}, },
"require": { "require": {
"ext-ctype": "*", "ext-ctype": "*",
@ -298,7 +298,7 @@
"serializer", "serializer",
"xml" "xml"
], ],
"time": "2021-07-01T14:25:37+00:00" "time": "2022-07-31T06:41:22+00:00"
}, },
{ {
"name": "psr/http-factory", "name": "psr/http-factory",

View File

@ -30,7 +30,7 @@ class InstalledVersions
'aliases' => 'aliases' =>
array ( array (
), ),
'reference' => '4aefbd628e9a0e1eac58523904ad887b0635cda3', 'reference' => 'a8b0bce008e23f9c47bf1f4de4d8e6886435071e',
'name' => '__root__', 'name' => '__root__',
), ),
'versions' => 'versions' =>
@ -42,7 +42,7 @@ class InstalledVersions
'aliases' => 'aliases' =>
array ( array (
), ),
'reference' => '4aefbd628e9a0e1eac58523904ad887b0635cda3', 'reference' => 'a8b0bce008e23f9c47bf1f4de4d8e6886435071e',
), ),
'fivefilters/readability.php' => 'fivefilters/readability.php' =>
array ( array (
@ -80,7 +80,7 @@ class InstalledVersions
array ( array (
0 => '2.7.x-dev', 0 => '2.7.x-dev',
), ),
'reference' => 'f640ac1bdddff06ea333a920c95bbad8872429ab', 'reference' => '1e0033a694ce576deba7c59c1da56c76e9e42109',
), ),
'psr/http-factory' => 'psr/http-factory' =>
array ( array (

View File

@ -246,7 +246,7 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https://dev.tt-rss.org/fox/html5-php.git", "url": "https://dev.tt-rss.org/fox/html5-php.git",
"reference": "f640ac1bdddff06ea333a920c95bbad8872429ab" "reference": "1e0033a694ce576deba7c59c1da56c76e9e42109"
}, },
"require": { "require": {
"ext-ctype": "*", "ext-ctype": "*",
@ -257,7 +257,7 @@
"require-dev": { "require-dev": {
"phpunit/phpunit": "^4.8.35 || ^5.7.21 || ^6 || ^7" "phpunit/phpunit": "^4.8.35 || ^5.7.21 || ^6 || ^7"
}, },
"time": "2021-07-01T14:25:37+00:00", "time": "2022-07-31T06:41:22+00:00",
"default-branch": true, "default-branch": true,
"type": "library", "type": "library",
"extra": { "extra": {

View File

@ -6,7 +6,7 @@
'aliases' => 'aliases' =>
array ( array (
), ),
'reference' => '4aefbd628e9a0e1eac58523904ad887b0635cda3', 'reference' => 'a8b0bce008e23f9c47bf1f4de4d8e6886435071e',
'name' => '__root__', 'name' => '__root__',
), ),
'versions' => 'versions' =>
@ -18,7 +18,7 @@
'aliases' => 'aliases' =>
array ( array (
), ),
'reference' => '4aefbd628e9a0e1eac58523904ad887b0635cda3', 'reference' => 'a8b0bce008e23f9c47bf1f4de4d8e6886435071e',
), ),
'fivefilters/readability.php' => 'fivefilters/readability.php' =>
array ( array (
@ -56,7 +56,7 @@
array ( array (
0 => '2.7.x-dev', 0 => '2.7.x-dev',
), ),
'reference' => 'f640ac1bdddff06ea333a920c95bbad8872429ab', 'reference' => '1e0033a694ce576deba7c59c1da56c76e9e42109',
), ),
'psr/http-factory' => 'psr/http-factory' =>
array ( array (

View File

@ -192,6 +192,7 @@ class StringInputStream implements InputStream
* Advance the pointer. * Advance the pointer.
* This is part of the Iterator interface. * This is part of the Iterator interface.
*/ */
#[\ReturnTypeWillChange]
public function next() public function next()
{ {
++$this->char; ++$this->char;
@ -200,6 +201,7 @@ class StringInputStream implements InputStream
/** /**
* Rewind to the start of the string. * Rewind to the start of the string.
*/ */
#[\ReturnTypeWillChange]
public function rewind() public function rewind()
{ {
$this->char = 0; $this->char = 0;
@ -210,6 +212,7 @@ class StringInputStream implements InputStream
* *
* @return bool Whether the current pointer location is valid. * @return bool Whether the current pointer location is valid.
*/ */
#[\ReturnTypeWillChange]
public function valid() public function valid()
{ {
return $this->char < $this->EOF; return $this->char < $this->EOF;