Skip to content

Commit

Permalink
Clean up: Dockerfile (8.1 => 8.2); CS fixes; PHPStan complain in XMLP…
Browse files Browse the repository at this point in the history
…arser
  • Loading branch information
k00ni committed Aug 28, 2023
1 parent d5b47f2 commit 4d98c89
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM php:8.1-cli
FROM php:8.2-cli

RUN apt-get update && \
apt-get install -y git graphviz libicu-dev libzip-dev make nano net-tools raptor2-utils wget zip zlib1g-dev

RUN apt-get install -y openjdk-11-jre
RUN apt-get install -y openjdk-17-jre

RUN docker-php-ext-install intl zip && docker-php-ext-enable intl zip

Expand Down
6 changes: 6 additions & 0 deletions lib/XMLParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ class XMLParser extends \XMLReader
/** Callback to call when significant whitespace is encountered */
public $whitespaceCallback;

public bool $isEmptyElement;

public string $name;

public int $nodeType;

/** Parse an XML string. Calls the callback methods
* when various nodes of an XML document are encountered
*/
Expand Down
2 changes: 0 additions & 2 deletions test/MockClass/Http/MockClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ class MockClient extends Client
private $mocks = [];

/**
* @param null $method
*
* @return Response
*
* @throws \EasyRdf\Exception
Expand Down
1 change: 1 addition & 0 deletions test/MockClass/Parser/MockParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class MockParser extends Parser
public function parse($graph, $data, $format, $baseUri): bool
{
parent::checkParseParams($graph, $data, $format, $baseUri);

// Parsing goes here
return true;
}
Expand Down
1 change: 1 addition & 0 deletions test/MockClass/Serialiser/MockSerialiser.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class MockSerialiser extends Serialiser
public function serialise(Graph $graph, $format, array $options = []): string
{
parent::checkSerialiseParams($format);

// Serialising goes here
return '';
}
Expand Down

0 comments on commit 4d98c89

Please sign in to comment.