From 031782884769872735e6a73452043324ab634ef1 Mon Sep 17 00:00:00 2001 From: wn_ Date: Mon, 12 Dec 2022 22:31:14 +0000 Subject: Bump af_readability 'html5-php' dependency to latest. This is to add a couple more 'ReturnTypeWillChange' ( https://dev.tt-rss.org/main/html5-php/pulls/1 ). Composer 2.4.4 (latest release) also updated some of its files. --- .../masterminds/html5/src/HTML5/Parser/StringInputStream.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'plugins/af_readability/vendor/masterminds/html5') diff --git a/plugins/af_readability/vendor/masterminds/html5/src/HTML5/Parser/StringInputStream.php b/plugins/af_readability/vendor/masterminds/html5/src/HTML5/Parser/StringInputStream.php index bed9d6eab..75b088610 100644 --- a/plugins/af_readability/vendor/masterminds/html5/src/HTML5/Parser/StringInputStream.php +++ b/plugins/af_readability/vendor/masterminds/html5/src/HTML5/Parser/StringInputStream.php @@ -183,6 +183,7 @@ class StringInputStream implements InputStream * * @return string The current character. */ + #[\ReturnTypeWillChange] public function current() { return $this->data[$this->char]; @@ -192,7 +193,7 @@ class StringInputStream implements InputStream * Advance the pointer. * This is part of the Iterator interface. */ - #[\ReturnTypeWillChange] + #[\ReturnTypeWillChange] public function next() { ++$this->char; @@ -201,7 +202,7 @@ class StringInputStream implements InputStream /** * Rewind to the start of the string. */ - #[\ReturnTypeWillChange] + #[\ReturnTypeWillChange] public function rewind() { $this->char = 0; @@ -212,7 +213,7 @@ class StringInputStream implements InputStream * * @return bool Whether the current pointer location is valid. */ - #[\ReturnTypeWillChange] + #[\ReturnTypeWillChange] public function valid() { return $this->char < $this->EOF; @@ -327,6 +328,7 @@ class StringInputStream implements InputStream return false; } + #[\ReturnTypeWillChange] public function key() { return $this->char; -- cgit v1.2.3 From 457553eeac9cb8e261cd96680d0bb85e1d7555c1 Mon Sep 17 00:00:00 2001 From: wn_ Date: Mon, 12 Dec 2022 22:38:16 +0000 Subject: Add af_readability 'html5-php' Jenkinsfile. Got missed when updating that dependency. --- .../vendor/masterminds/html5/Jenkinsfile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 plugins/af_readability/vendor/masterminds/html5/Jenkinsfile (limited to 'plugins/af_readability/vendor/masterminds/html5') diff --git a/plugins/af_readability/vendor/masterminds/html5/Jenkinsfile b/plugins/af_readability/vendor/masterminds/html5/Jenkinsfile new file mode 100644 index 000000000..c0adb8d65 --- /dev/null +++ b/plugins/af_readability/vendor/masterminds/html5/Jenkinsfile @@ -0,0 +1,19 @@ +pipeline { + agent any + + options { + buildDiscarder(logRotator(numToKeepStr: '5')) + } + + stages { + stage('phpstan') { + steps { + sh """ + docker run --rm -v ${env.WORKSPACE}:/src/tt-rss/lib/local \ + --workdir /src/tt-rss registry.fakecake.org/cthulhoo/ttrss-fpm-pgsql-static:latest\ + php81 ./vendor/bin/phpstan analyse lib/local --memory-limit=1G + """ + } + } + } +} -- cgit v1.2.3