1
0
Fork 0

Provide default impl for abstract method in interface for PHP < 5.3.9 (#8837)

pull/8852/head
Nils Adermann 2020-04-26 09:15:15 +02:00 committed by GitHub
parent d173af2d7a
commit 994a5b41c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 3 deletions

View File

@ -45,7 +45,10 @@ abstract class SolverOperation implements OperationInterface
/** /**
* @param $lock bool Whether this is an operation on the lock file * @param $lock bool Whether this is an operation on the lock file
* @return string * @return string
*/ */
abstract public function show($lock); public function show($lock)
{
throw new \RuntimeException('abstract method needs to be implemented in subclass, not marked abstract for compatibility with PHP <= 5.3.8');
}
} }