Skip to content

Commit

Permalink
hard fix in vendor dir so that installation works in ci with php8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
srobotta committed Nov 8, 2023
1 parent 84799d8 commit e01c6c8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions classes/vendor/74x/dallgoot/yaml/sources/NodeFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ final public static function get($nodeString = null, $line = 0):NodeGeneric
*
* @return NodeGeneric
*/
final private static function onSpecial(string $first, string $nodeString, int $line):NodeGeneric
private static function onSpecial(string $first, string $nodeString, int $line):NodeGeneric
{
if ($first === "#") {
return new Nodes\Comment(ltrim($nodeString), $line);
Expand All @@ -74,7 +74,7 @@ final private static function onSpecial(string $first, string $nodeString, int $
*
* @return NodeGeneric
*/
final private static function onQuoted(string $first, string $nodeString, int $line):NodeGeneric
private static function onQuoted(string $first, string $nodeString, int $line):NodeGeneric
{
return Regex::isProperlyQuoted(trim($nodeString)) ? new Nodes\Quoted($nodeString, $line)
: new Nodes\Partial($nodeString, $line);
Expand All @@ -88,7 +88,7 @@ final private static function onQuoted(string $first, string $nodeString, int $l
*
* @return NodeGeneric
*/
final private static function onSetElement(string $first, string $nodeString, int $line):NodeGeneric
private static function onSetElement(string $first, string $nodeString, int $line):NodeGeneric
{
return $first === '?' ? new Nodes\SetKey($nodeString, $line)
: new Nodes\SetValue($nodeString, $line);
Expand All @@ -102,7 +102,7 @@ final private static function onSetElement(string $first, string $nodeString, in
*
* @return NodeGeneric
*/
final private static function onCompact(string $first, string $nodeString, int $line):NodeGeneric
private static function onCompact(string $first, string $nodeString, int $line):NodeGeneric
{
json_decode($nodeString, false, 512, self::JSON_OPTIONS);
if (json_last_error() === \JSON_ERROR_NONE) {
Expand Down Expand Up @@ -135,7 +135,7 @@ final private static function onCompact(string $first, string $nodeString, int $
*
* @return NodeGeneric
*/
final private static function onHyphen(string $first, string $nodeString, int $line):NodeGeneric
private static function onHyphen(string $first, string $nodeString, int $line):NodeGeneric
{
if (substr($nodeString, 0, 3) === '---') return new Nodes\DocStart($nodeString, $line);
elseif ((bool) preg_match(Regex::ITEM, ltrim($nodeString))) return new Nodes\Item($nodeString, $line);
Expand All @@ -152,7 +152,7 @@ final private static function onHyphen(string $first, string $nodeString, int $l
*
*@todo replace $action[0] with $first if applicable
*/
final private static function onNodeAction(string $first, string $nodeString, int $line):NodeGeneric
private static function onNodeAction(string $first, string $nodeString, int $line):NodeGeneric
{
if (!((bool) preg_match(Regex::NODE_ACTIONS, trim($nodeString), $matches))) {
// var_dump("ACTION is scalar: '$nodeString'");
Expand All @@ -165,7 +165,7 @@ final private static function onNodeAction(string $first, string $nodeString, in
}
}

final private static function onLiteral(string $first, string $nodeString, int $line):NodeGeneric
private static function onLiteral(string $first, string $nodeString, int $line):NodeGeneric
{
switch ($first) {
case '>': return new Nodes\LiteralFolded($nodeString, $line);
Expand Down

0 comments on commit e01c6c8

Please sign in to comment.