Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TASK] Happify phpstan #564

Merged
merged 1 commit into from
Jun 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions Classes/Core/BaseTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ abstract class BaseTestCase extends TestCase
* @param bool $callAutoload whether to call any autoload function
*
* @return MockObject&AccessibleObjectInterface&T a mock of `$originalClassName` with access methods added
*
* @throws \InvalidArgumentException
*/
protected function getAccessibleMock(
$originalClassName,
Expand All @@ -51,10 +49,6 @@ protected function getAccessibleMock(
$callOriginalClone = true,
$callAutoload = true
) {
if ($originalClassName === '') {
throw new \InvalidArgumentException('$originalClassName must not be empty.', 1334701880);
}

$mockBuilder = $this->getMockBuilder($this->buildAccessibleProxy($originalClassName))
->setConstructorArgs($arguments)
->setMockClassName($mockClassName);
Expand Down Expand Up @@ -106,10 +100,6 @@ protected function getAccessibleMockForAbstractClass(
$callAutoload = true,
$mockedMethods = []
) {
if ($originalClassName === '') {
throw new \InvalidArgumentException('$originalClassName must not be empty.', 1384268260);
}

return $this->getMockForAbstractClass(
$this->buildAccessibleProxy($originalClassName),
$arguments,
Expand Down