20. 20
アプリケーションエラーの解消
{
"message": "Access level to
XXXX¥¥Application¥¥Requests¥¥XXXX¥¥XXXX::validationData() must be public (as in
class Illuminate¥¥Foundation¥¥Http¥¥FormRequest)",
"exception": "Symfony¥¥Component¥¥Debug¥¥Exception¥¥FatalErrorException",
"file": "/var/www/XXXXX/Application/Requests/XXXX/XXXX.php",
"line": 9,
"trace": []
}
FormRequestでエラー
23. 23
テストコードの修正
PHPUnitの実⾏でエラー その1
PHP Fatal error: Declaration of
Tests¥Unit¥XXXXX¥XXXXX¥XXXXX¥XXXXX¥XXXXX::setUp() must be compatible with
Illuminate¥Foundation¥Testing¥TestCase::setUp(): void in
/opt/project/tests/Unit/XXXXX/XXXXX/XXXXX/XXXXX/XXXXX.php on line 121
32. 32
テストコードの修正
PHPUnitの実⾏でエラー その3
The @expectedException, @expectedExceptionCode,
@expectedExceptionMessage, and
@expectedExceptionMessageRegExp annotations are
deprecated. They will be removed in PHPUnit 9. Refactor your
test to use expectException(), expectExceptionCode(),
expectExceptionMessage(), or
expectExceptionMessageRegExp() instead.
35. 35
テストコードの修正
PHPUnitの実⾏でエラー その3
assertInternalType() is deprecated and will be removed in
PHPUnit 9. Refactor your test to use assertIsArray(),
assertIsBool(), assertIsFloat(), assertIsInt(), assertIsNumeric(),
assertIsObject(), assertIsResource(), assertIsString(),
assertIsScalar(), assertIsCallable(), or assertIsIterable() instead.