Skip to content

Commit f670288

Browse files
committed
Patch hoa
1 parent ef44f28 commit f670288

8 files changed

+80
-4
lines changed

composer.json

+10-1
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,23 @@
8282
"composer/ca-bundle": [
8383
"patches/cloudflare-ca.patch"
8484
],
85+
"hoa/exception": [
86+
"patches/Idle.patch"
87+
],
88+
"hoa/file": [
89+
"patches/File.patch",
90+
"patches/Read.patch"
91+
],
8592
"hoa/iterator": [
8693
"patches/Buffer.patch",
8794
"patches/Lookahead.patch"
8895
],
8996
"hoa/compiler": [
9097
"patches/HoaException.patch",
98+
"patches/Invocation.patch",
9199
"patches/Rule.patch",
92-
"patches/Lexer.patch"
100+
"patches/Lexer.patch",
101+
"patches/TreeNode.patch"
93102
],
94103
"hoa/consistency": [
95104
"patches/Consistency.patch"

composer.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

patches/File.patch

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- File.php 2017-07-11 09:42:15
2+
+++ File.php 2024-08-26 23:13:27
3+
@@ -192,7 +192,7 @@
4+
* @throws \Hoa\File\Exception\FileDoesNotExist
5+
* @throws \Hoa\File\Exception
6+
*/
7+
- protected function &_open($streamName, Stream\Context $context = null)
8+
+ protected function &_open($streamName, ?Stream\Context $context = null)
9+
{
10+
if (substr($streamName, 0, 4) == 'file' &&
11+
false === is_dir(dirname($streamName))) {

patches/Idle.patch

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- Idle.php 2017-01-16 08:53:27
2+
+++ Idle.php 2024-08-26 23:18:04
3+
@@ -100,7 +100,7 @@
4+
$message,
5+
$code = 0,
6+
$arguments = [],
7+
- \Exception $previous = null
8+
+ ?\Exception $previous = null
9+
) {
10+
$this->_tmpArguments = $arguments;
11+
parent::__construct($message, $code, $previous);

patches/Invocation.patch

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- Llk/Rule/Invocation.php 2017-08-08 09:44:07
2+
+++ Llk/Rule/Invocation.php 2024-08-26 23:11:25
3+
@@ -95,7 +95,7 @@
4+
public function __construct(
5+
$rule,
6+
$data,
7+
- array $todo = null,
8+
+ ?array $todo = null,
9+
$depth = -1
10+
) {
11+
$this->_rule = $rule;

patches/Read.patch

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- Read.php 2017-07-11 09:42:15
2+
+++ Read.php 2024-08-26 23:09:54
3+
@@ -77,7 +77,7 @@
4+
* @throws \Hoa\File\Exception\FileDoesNotExist
5+
* @throws \Hoa\File\Exception
6+
*/
7+
- protected function &_open($streamName, Stream\Context $context = null)
8+
+ protected function &_open($streamName, ?Stream\Context $context = null)
9+
{
10+
static $createModes = [
11+
parent::MODE_READ

patches/Stream.patch

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
--- Stream.php 2017-02-21 17:01:06.000000000 +0100
2-
+++ Stream.php 2021-04-19 17:10:20.000000000 +0200
1+
--- Stream.php 2024-08-26 23:05:49
2+
+++ Stream.php 2024-08-26 23:01:08
33
@@ -192,7 +192,7 @@
44
* @return array
55
* @throws \Hoa\Stream\Exception
@@ -9,6 +9,15 @@
99
$streamName,
1010
Stream $handler,
1111
$context = null
12+
@@ -250,7 +250,7 @@
13+
* @return resource
14+
* @throws \Hoa\Exception\Exception
15+
*/
16+
- abstract protected function &_open($streamName, Context $context = null);
17+
+ abstract protected function &_open($streamName, ?Context $context = null);
18+
19+
/**
20+
* Close the current stream.
1221
@@ -687,11 +687,6 @@
1322
Consistency::flexEntity('Hoa\Stream\Stream');
1423

patches/TreeNode.patch

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
--- Llk/TreeNode.php 2017-08-08 09:44:07
2+
+++ Llk/TreeNode.php 2024-08-26 23:07:29
3+
@@ -95,9 +95,9 @@
4+
*/
5+
public function __construct(
6+
$id,
7+
- array $value = null,
8+
+ ?array $value = null,
9+
array $children = [],
10+
- self $parent = null
11+
+ ?self $parent = null
12+
) {
13+
$this->setId($id);
14+

0 commit comments

Comments
 (0)