Skip to content

Commit

Permalink
Patch hoa
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Aug 26, 2024
1 parent ef44f28 commit f670288
Show file tree
Hide file tree
Showing 8 changed files with 80 additions and 4 deletions.
11 changes: 10 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,23 @@
"composer/ca-bundle": [
"patches/cloudflare-ca.patch"
],
"hoa/exception": [
"patches/Idle.patch"
],
"hoa/file": [
"patches/File.patch",
"patches/Read.patch"
],
"hoa/iterator": [
"patches/Buffer.patch",
"patches/Lookahead.patch"
],
"hoa/compiler": [
"patches/HoaException.patch",
"patches/Invocation.patch",
"patches/Rule.patch",
"patches/Lexer.patch"
"patches/Lexer.patch",
"patches/TreeNode.patch"
],
"hoa/consistency": [
"patches/Consistency.patch"
Expand Down
2 changes: 1 addition & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions patches/File.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- File.php 2017-07-11 09:42:15
+++ File.php 2024-08-26 23:13:27
@@ -192,7 +192,7 @@
* @throws \Hoa\File\Exception\FileDoesNotExist
* @throws \Hoa\File\Exception
*/
- protected function &_open($streamName, Stream\Context $context = null)
+ protected function &_open($streamName, ?Stream\Context $context = null)
{
if (substr($streamName, 0, 4) == 'file' &&
false === is_dir(dirname($streamName))) {
11 changes: 11 additions & 0 deletions patches/Idle.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- Idle.php 2017-01-16 08:53:27
+++ Idle.php 2024-08-26 23:18:04
@@ -100,7 +100,7 @@
$message,
$code = 0,
$arguments = [],
- \Exception $previous = null
+ ?\Exception $previous = null
) {
$this->_tmpArguments = $arguments;
parent::__construct($message, $code, $previous);
11 changes: 11 additions & 0 deletions patches/Invocation.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- Llk/Rule/Invocation.php 2017-08-08 09:44:07
+++ Llk/Rule/Invocation.php 2024-08-26 23:11:25
@@ -95,7 +95,7 @@
public function __construct(
$rule,
$data,
- array $todo = null,
+ ?array $todo = null,
$depth = -1
) {
$this->_rule = $rule;
11 changes: 11 additions & 0 deletions patches/Read.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- Read.php 2017-07-11 09:42:15
+++ Read.php 2024-08-26 23:09:54
@@ -77,7 +77,7 @@
* @throws \Hoa\File\Exception\FileDoesNotExist
* @throws \Hoa\File\Exception
*/
- protected function &_open($streamName, Stream\Context $context = null)
+ protected function &_open($streamName, ?Stream\Context $context = null)
{
static $createModes = [
parent::MODE_READ
13 changes: 11 additions & 2 deletions patches/Stream.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- Stream.php 2017-02-21 17:01:06.000000000 +0100
+++ Stream.php 2021-04-19 17:10:20.000000000 +0200
--- Stream.php 2024-08-26 23:05:49
+++ Stream.php 2024-08-26 23:01:08
@@ -192,7 +192,7 @@
* @return array
* @throws \Hoa\Stream\Exception
Expand All @@ -9,6 +9,15 @@
$streamName,
Stream $handler,
$context = null
@@ -250,7 +250,7 @@
* @return resource
* @throws \Hoa\Exception\Exception
*/
- abstract protected function &_open($streamName, Context $context = null);
+ abstract protected function &_open($streamName, ?Context $context = null);

/**
* Close the current stream.
@@ -687,11 +687,6 @@
Consistency::flexEntity('Hoa\Stream\Stream');

Expand Down
14 changes: 14 additions & 0 deletions patches/TreeNode.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
--- Llk/TreeNode.php 2017-08-08 09:44:07
+++ Llk/TreeNode.php 2024-08-26 23:07:29
@@ -95,9 +95,9 @@
*/
public function __construct(
$id,
- array $value = null,
+ ?array $value = null,
array $children = [],
- self $parent = null
+ ?self $parent = null
) {
$this->setId($id);

0 comments on commit f670288

Please sign in to comment.