Skip to content

Commit 651cdab

Browse files
committed
chore: remove feature content and use --ignore-parse-errors for PHP 7.1 tests
1 parent d06991f commit 651cdab

File tree

2 files changed

+2
-21
lines changed

2 files changed

+2
-21
lines changed

src/Reflection/ClassReflection.php

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -632,25 +632,6 @@ public function setCategory($category)
632632
$this->category = $category;
633633
}
634634

635-
public function hasMixins(): bool
636-
{
637-
return ! empty($this->getTags('mixin'));
638-
}
639-
640-
/**
641-
* @return array<int,array<string,ClassReflection>>
642-
*/
643-
public function getMixins(): array
644-
{
645-
$mixins = [];
646-
foreach ($this->getTags('mixin') as $mixin) {
647-
$mixins[] = [
648-
'class' => new ClassReflection($mixin[0], -1),
649-
];
650-
}
651-
return $mixins;
652-
}
653-
654635
/**
655636
* @return bool
656637
*/

tests/phar/tests.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ testPharVersionCommand() {
1919

2020
testPharAbsoluteFiles() {
2121
cd $(dirname $0)/data/
22-
ABSOLUTE_OUTPUT=$(COLUMNS=200 ${PHAR_PATH} update --no-progress --no-ansi --force ./doctum-absolute.conf.php 2>&1)
22+
ABSOLUTE_OUTPUT=$(COLUMNS=200 ${PHAR_PATH} update --ignore-parse-errors --no-progress --no-ansi --force ./doctum-absolute.conf.php 2>&1)
2323
assertSame "The output must be the same" "$(cat absolute_1.out)" "${ABSOLUTE_OUTPUT}"
2424
cd - > /dev/null
2525
}
2626

2727
testPharRelativeFiles() {
2828
cd $(dirname $0)/data/
29-
RELATIVE_OUTPUT=$(COLUMNS=200 ${PHAR_PATH} update --no-progress --no-ansi --force ./doctum-relative.conf.php 2>&1)
29+
RELATIVE_OUTPUT=$(COLUMNS=200 ${PHAR_PATH} update --ignore-parse-errors --no-progress --no-ansi --force ./doctum-relative.conf.php 2>&1)
3030
assertSame "The output must be the same" "$(cat relative_1.out)" "${RELATIVE_OUTPUT}"
3131
cd - > /dev/null
3232
}

0 commit comments

Comments
 (0)