Skip to content

Commit 847a947

Browse files
committed
Patch nette/neon
1 parent ae3c398 commit 847a947

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@
111111
"patches/DependencyChecker.patch"
112112
],
113113
"nette/neon": [
114-
"patches/NetteNeonStringNode.patch"
114+
"patches/NetteNeonStringNode.patch",
115+
"patches/NeonParser.patch"
115116
]
116117
}
117118
},

composer.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

patches/NeonParser.patch

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- src/Neon/Parser.php 2022-03-10 03:04:26
2+
+++ src/Neon/Parser.php 2024-08-26 21:57:02
3+
@@ -236,7 +236,7 @@
4+
}
5+
6+
7+
- private function injectPos(Node $node, int $start = null, int $end = null): Node
8+
+ private function injectPos(Node $node, ?int $start = null, ?int $end = null): Node
9+
{
10+
$node->startTokenPos = $start ?? $this->tokens->getPos();
11+
$node->startLine = $this->posToLine[$node->startTokenPos];

0 commit comments

Comments
 (0)