UnexpectedNullMatchException.php 511 B

1234567891011121314151617181920
  1. <?php
  2. /*
  3. * This file is part of composer/pcre.
  4. *
  5. * (c) Composer <https://github.com/composer>
  6. *
  7. * For the full copyright and license information, please view
  8. * the LICENSE file that was distributed with this source code.
  9. */
  10. namespace Composer\Pcre;
  11. class UnexpectedNullMatchException extends PcreException
  12. {
  13. public static function fromFunction($function, $pattern)
  14. {
  15. throw new \LogicException('fromFunction should not be called on '.self::class.', use '.PcreException::class);
  16. }
  17. }