Файловый менеджер - Редактировать - /home/avadvi5/calendar.aeronextgen.com/code-unit.zip
Ðазад
PK �n�\sρ README.mdnu �[��� [](https://packagist.org/packages/sebastian/code-unit) [](https://github.com/sebastianbergmann/code-unit/actions) [](https://shepherd.dev/github/sebastianbergmann/code-unit) [](https://codecov.io/gh/sebastianbergmann/code-unit) # sebastian/code-unit Collection of value objects that represent the PHP code units. ## Installation You can add this library as a local, per-project dependency to your project using [Composer](https://getcomposer.org/): ``` composer require sebastian/code-unit ``` If you only need this library during development, for instance to run your project's test suite, then you should add it as a development-time dependency: ``` composer require --dev sebastian/code-unit ``` PK �n�\�P@� � LICENSEnu �[��� BSD 3-Clause License Copyright (c) 2020-2023, Sebastian Bergmann All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PK �n�\�G3�� � ChangeLog.mdnu �[��� # ChangeLog All notable changes are documented in this file using the [Keep a CHANGELOG](http://keepachangelog.com/) principles. ## [2.0.0] - 2023-02-03 ### Added * Added `SebastianBergmann\CodeUnit\FileUnit` value object that represents a sourcecode file ### Removed * `SebastianBergmann\CodeUnit\CodeUnitCollection::fromArray()` has been removed * `SebastianBergmann\CodeUnit\Mapper::stringToCodeUnits()` no longer supports `ClassName<*>` * This component is no longer supported on PHP 7.3, PHP 7.4, and PHP 8.0 ## [1.0.8] - 2020-10-26 ### Fixed * `SebastianBergmann\CodeUnit\Exception` now correctly extends `\Throwable` ## [1.0.7] - 2020-10-02 ### Fixed * `SebastianBergmann\CodeUnit\Mapper::stringToCodeUnits()` no longer attempts to create `CodeUnit` objects for code units that are not declared in userland ## [1.0.6] - 2020-09-28 ### Changed * Changed PHP version constraint in `composer.json` from `^7.3 || ^8.0` to `>=7.3` ## [1.0.5] - 2020-06-26 ### Fixed * [#3](https://github.com/sebastianbergmann/code-unit/issues/3): Regression in 1.0.4 ## [1.0.4] - 2020-06-26 ### Added * This component is now supported on PHP 8 ## [1.0.3] - 2020-06-15 ### Changed * Tests etc. are now ignored for archive exports ## [1.0.2] - 2020-04-30 ### Fixed * `Mapper::stringToCodeUnits()` raised the wrong exception for `Class::method` when a class named `Class` exists but does not have a method named `method` ## [1.0.1] - 2020-04-27 ### Fixed * [#2](https://github.com/sebastianbergmann/code-unit/issues/2): `Mapper::stringToCodeUnits()` breaks when `ClassName<extended>` is used for class that extends built-in class ## [1.0.0] - 2020-03-30 * Initial release [2.0.0]: https://github.com/sebastianbergmann/code-unit/compare/1.0.8...2.0.0 [1.0.8]: https://github.com/sebastianbergmann/code-unit/compare/1.0.7...1.0.8 [1.0.7]: https://github.com/sebastianbergmann/code-unit/compare/1.0.6...1.0.7 [1.0.6]: https://github.com/sebastianbergmann/code-unit/compare/1.0.5...1.0.6 [1.0.5]: https://github.com/sebastianbergmann/code-unit/compare/1.0.4...1.0.5 [1.0.4]: https://github.com/sebastianbergmann/code-unit/compare/1.0.3...1.0.4 [1.0.3]: https://github.com/sebastianbergmann/code-unit/compare/1.0.2...1.0.3 [1.0.2]: https://github.com/sebastianbergmann/code-unit/compare/1.0.1...1.0.2 [1.0.1]: https://github.com/sebastianbergmann/code-unit/compare/1.0.0...1.0.1 [1.0.0]: https://github.com/sebastianbergmann/code-unit/compare/530c3900e5db9bcb8516da545bef0d62536cedaa...1.0.0 PK �n�\=i30 30 src/CodeUnit.phpnu �[��� <?php declare(strict_types=1); /* * This file is part of sebastian/code-unit. * * (c) Sebastian Bergmann <sebastian@phpunit.de> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace SebastianBergmann\CodeUnit; use function count; use function file; use function file_exists; use function is_readable; use function range; use function sprintf; use ReflectionClass; use ReflectionFunction; use ReflectionMethod; /** * @psalm-immutable */ abstract class CodeUnit { private readonly string $name; private readonly string $sourceFileName; /** * @psalm-var list<int> */ private readonly array $sourceLines; /** * @psalm-param class-string $className * * @throws InvalidCodeUnitException * @throws ReflectionException */ public static function forClass(string $className): ClassUnit { self::ensureUserDefinedClass($className); $reflector = self::reflectorForClass($className); return new ClassUnit( $className, $reflector->getFileName(), range( $reflector->getStartLine(), $reflector->getEndLine() ) ); } /** * @psalm-param class-string $className * * @throws InvalidCodeUnitException * @throws ReflectionException */ public static function forClassMethod(string $className, string $methodName): ClassMethodUnit { self::ensureUserDefinedClass($className); $reflector = self::reflectorForClassMethod($className, $methodName); return new ClassMethodUnit( $className . '::' . $methodName, $reflector->getFileName(), range( $reflector->getStartLine(), $reflector->getEndLine() ) ); } /** * @throws InvalidCodeUnitException */ public static function forFileWithAbsolutePath(string $path): FileUnit { self::ensureFileExistsAndIsReadable($path); return new FileUnit( $path, $path, range( 1, count(file($path)) ) ); } /** * @psalm-param class-string $interfaceName * * @throws InvalidCodeUnitException * @throws ReflectionException */ public static function forInterface(string $interfaceName): InterfaceUnit { self::ensureUserDefinedInterface($interfaceName); $reflector = self::reflectorForClass($interfaceName); return new InterfaceUnit( $interfaceName, $reflector->getFileName(), range( $reflector->getStartLine(), $reflector->getEndLine() ) ); } /** * @psalm-param class-string $interfaceName * * @throws InvalidCodeUnitException * @throws ReflectionException */ public static function forInterfaceMethod(string $interfaceName, string $methodName): InterfaceMethodUnit { self::ensureUserDefinedInterface($interfaceName); $reflector = self::reflectorForClassMethod($interfaceName, $methodName); return new InterfaceMethodUnit( $interfaceName . '::' . $methodName, $reflector->getFileName(), range( $reflector->getStartLine(), $reflector->getEndLine() ) ); } /** * @psalm-param class-string $traitName * * @throws InvalidCodeUnitException * @throws ReflectionException */ public static function forTrait(string $traitName): TraitUnit { self::ensureUserDefinedTrait($traitName); $reflector = self::reflectorForClass($traitName); return new TraitUnit( $traitName, $reflector->getFileName(), range( $reflector->getStartLine(), $reflector->getEndLine() ) ); } /** * @psalm-param class-string $traitName * * @throws InvalidCodeUnitException * @throws ReflectionException */ public static function forTraitMethod(string $traitName, string $methodName): TraitMethodUnit { self::ensureUserDefinedTrait($traitName); $reflector = self::reflectorForClassMethod($traitName, $methodName); return new TraitMethodUnit( $traitName . '::' . $methodName, $reflector->getFileName(), range( $reflector->getStartLine(), $reflector->getEndLine() ) ); } /** * @psalm-param callable-string $functionName * * @throws InvalidCodeUnitException * @throws ReflectionException */ public static function forFunction(string $functionName): FunctionUnit { $reflector = self::reflectorForFunction($functionName); if (!$reflector->isUserDefined()) { throw new InvalidCodeUnitException( sprintf( '"%s" is not a user-defined function', $functionName ) ); } return new FunctionUnit( $functionName, $reflector->getFileName(), range( $reflector->getStartLine(), $reflector->getEndLine() ) ); } /** * @psalm-param list<int> $sourceLines */ private function __construct(string $name, string $sourceFileName, array $sourceLines) { $this->name = $name; $this->sourceFileName = $sourceFileName; $this->sourceLines = $sourceLines; } public function name(): string { return $this->name; } public function sourceFileName(): string { return $this->sourceFileName; } /** * @psalm-return list<int> */ public function sourceLines(): array { return $this->sourceLines; } public function isClass(): bool { return false; } public function isClassMethod(): bool { return false; } public function isInterface(): bool { return false; } public function isInterfaceMethod(): bool { return false; } public function isTrait(): bool { return false; } public function isTraitMethod(): bool { return false; } public function isFunction(): bool { return false; } public function isFile(): bool { return false; } /** * @throws InvalidCodeUnitException */ private static function ensureFileExistsAndIsReadable(string $path): void { if (!(file_exists($path) && is_readable($path))) { throw new InvalidCodeUnitException( sprintf( 'File "%s" does not exist or is not readable', $path ) ); } } /** * @psalm-param class-string $className * * @throws InvalidCodeUnitException */ private static function ensureUserDefinedClass(string $className): void { try { $reflector = new ReflectionClass($className); if ($reflector->isInterface()) { throw new InvalidCodeUnitException( sprintf( '"%s" is an interface and not a class', $className ) ); } if ($reflector->isTrait()) { throw new InvalidCodeUnitException( sprintf( '"%s" is a trait and not a class', $className ) ); } if (!$reflector->isUserDefined()) { throw new InvalidCodeUnitException( sprintf( '"%s" is not a user-defined class', $className ) ); } // @codeCoverageIgnoreStart } catch (\ReflectionException $e) { throw new ReflectionException( $e->getMessage(), $e->getCode(), $e ); } // @codeCoverageIgnoreEnd } /** * @psalm-param class-string $interfaceName * * @throws InvalidCodeUnitException */ private static function ensureUserDefinedInterface(string $interfaceName): void { try { $reflector = new ReflectionClass($interfaceName); if (!$reflector->isInterface()) { throw new InvalidCodeUnitException( sprintf( '"%s" is not an interface', $interfaceName ) ); } if (!$reflector->isUserDefined()) { throw new InvalidCodeUnitException( sprintf( '"%s" is not a user-defined interface', $interfaceName ) ); } // @codeCoverageIgnoreStart } catch (\ReflectionException $e) { throw new ReflectionException( $e->getMessage(), $e->getCode(), $e ); } // @codeCoverageIgnoreEnd } /** * @psalm-param class-string $traitName * * @throws InvalidCodeUnitException */ private static function ensureUserDefinedTrait(string $traitName): void { try { $reflector = new ReflectionClass($traitName); if (!$reflector->isTrait()) { throw new InvalidCodeUnitException( sprintf( '"%s" is not a trait', $traitName ) ); } // @codeCoverageIgnoreStart if (!$reflector->isUserDefined()) { throw new InvalidCodeUnitException( sprintf( '"%s" is not a user-defined trait', $traitName ) ); } } catch (\ReflectionException $e) { throw new ReflectionException( $e->getMessage(), $e->getCode(), $e ); } // @codeCoverageIgnoreEnd } /** * @psalm-param class-string $className * * @throws ReflectionException */ private static function reflectorForClass(string $className): ReflectionClass { try { return new ReflectionClass($className); // @codeCoverageIgnoreStart } catch (\ReflectionException $e) { throw new ReflectionException( $e->getMessage(), $e->getCode(), $e ); } // @codeCoverageIgnoreEnd } /** * @psalm-param class-string $className * * @throws ReflectionException */ private static function reflectorForClassMethod(string $className, string $methodName): ReflectionMethod { try { return new ReflectionMethod($className, $methodName); // @codeCoverageIgnoreStart } catch (\ReflectionException $e) { throw new ReflectionException( $e->getMessage(), $e->getCode(), $e ); } // @codeCoverageIgnoreEnd } /** * @psalm-param callable-string $functionName * * @throws ReflectionException */ private static function reflectorForFunction(string $functionName): ReflectionFunction { try { return new ReflectionFunction($functionName); // @codeCoverageIgnoreStart } catch (\ReflectionException $e) { throw new ReflectionException( $e->getMessage(), $e->getCode(), $e ); } // @codeCoverageIgnoreEnd } } PK �n�\��UX UX src/error_lognu �[��� [10-Apr-2025 22:08:19 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/FileUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/FileUnit.php on line 15 [10-Apr-2025 22:16:48 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/InterfaceMethodUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/InterfaceMethodUnit.php on line 15 [11-Apr-2025 00:00:28 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/TraitUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/TraitUnit.php on line 15 [11-Apr-2025 01:03:42 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/TraitMethodUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/TraitMethodUnit.php on line 15 [11-Apr-2025 03:20:47 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/FunctionUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/FunctionUnit.php on line 15 [11-Apr-2025 04:42:49 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/ClassMethodUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/ClassMethodUnit.php on line 15 [11-Apr-2025 05:48:19 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/ClassUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/ClassUnit.php on line 15 [11-Apr-2025 06:07:24 UTC] PHP Fatal error: Could not check compatibility between SebastianBergmann\CodeUnit\CodeUnitCollection::getIterator(): SebastianBergmann\CodeUnit\CodeUnitCollectionIterator and IteratorAggregate::getIterator(): Traversable, because class SebastianBergmann\CodeUnit\CodeUnitCollectionIterator is not available in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/CodeUnitCollection.php on line 50 [11-Apr-2025 07:08:54 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/InterfaceUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/InterfaceUnit.php on line 15 [16-Apr-2025 10:12:47 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/FunctionUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/FunctionUnit.php on line 15 [16-Apr-2025 11:22:21 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/InterfaceUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/InterfaceUnit.php on line 15 [16-Apr-2025 13:15:58 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/InterfaceMethodUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/InterfaceMethodUnit.php on line 15 [16-Apr-2025 14:24:09 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/FileUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/FileUnit.php on line 15 [16-Apr-2025 18:30:22 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/TraitMethodUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/TraitMethodUnit.php on line 15 [16-Apr-2025 19:07:46 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/TraitUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/TraitUnit.php on line 15 [19-Apr-2025 16:24:50 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/ClassUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/ClassUnit.php on line 15 [19-Apr-2025 20:10:32 UTC] PHP Fatal error: Could not check compatibility between SebastianBergmann\CodeUnit\CodeUnitCollection::getIterator(): SebastianBergmann\CodeUnit\CodeUnitCollectionIterator and IteratorAggregate::getIterator(): Traversable, because class SebastianBergmann\CodeUnit\CodeUnitCollectionIterator is not available in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/CodeUnitCollection.php on line 50 [19-Apr-2025 23:11:41 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/ClassMethodUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/ClassMethodUnit.php on line 15 [21-Apr-2025 22:24:19 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/TraitMethodUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/TraitMethodUnit.php on line 15 [21-Apr-2025 23:48:39 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/FileUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/FileUnit.php on line 15 [21-Apr-2025 23:55:11 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/FunctionUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/FunctionUnit.php on line 15 [22-Apr-2025 03:59:30 UTC] PHP Fatal error: Could not check compatibility between SebastianBergmann\CodeUnit\CodeUnitCollection::getIterator(): SebastianBergmann\CodeUnit\CodeUnitCollectionIterator and IteratorAggregate::getIterator(): Traversable, because class SebastianBergmann\CodeUnit\CodeUnitCollectionIterator is not available in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/CodeUnitCollection.php on line 50 [22-Apr-2025 04:02:00 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/InterfaceMethodUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/InterfaceMethodUnit.php on line 15 [22-Apr-2025 05:18:38 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/TraitUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/TraitUnit.php on line 15 [22-Apr-2025 06:10:45 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/InterfaceUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/InterfaceUnit.php on line 15 [22-Apr-2025 07:48:58 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/ClassMethodUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/ClassMethodUnit.php on line 15 [22-Apr-2025 10:12:50 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/ClassUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/ClassUnit.php on line 15 [27-Apr-2025 13:21:51 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/FunctionUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/FunctionUnit.php on line 15 [27-Apr-2025 15:34:20 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/TraitUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/TraitUnit.php on line 15 [27-Apr-2025 15:39:45 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/InterfaceMethodUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/InterfaceMethodUnit.php on line 15 [27-Apr-2025 17:01:55 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/ClassUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/ClassUnit.php on line 15 [27-Apr-2025 17:30:43 UTC] PHP Fatal error: Could not check compatibility between SebastianBergmann\CodeUnit\CodeUnitCollection::getIterator(): SebastianBergmann\CodeUnit\CodeUnitCollectionIterator and IteratorAggregate::getIterator(): Traversable, because class SebastianBergmann\CodeUnit\CodeUnitCollectionIterator is not available in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/CodeUnitCollection.php on line 50 [27-Apr-2025 19:01:23 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/InterfaceUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/InterfaceUnit.php on line 15 [27-Apr-2025 19:07:19 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/ClassMethodUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/ClassMethodUnit.php on line 15 [27-Apr-2025 19:16:34 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/FileUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/FileUnit.php on line 15 [27-Apr-2025 20:37:34 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/TraitMethodUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/TraitMethodUnit.php on line 15 [30-Apr-2025 02:51:00 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/InterfaceUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/InterfaceUnit.php on line 15 [30-Apr-2025 04:21:36 UTC] PHP Fatal error: Could not check compatibility between SebastianBergmann\CodeUnit\CodeUnitCollection::getIterator(): SebastianBergmann\CodeUnit\CodeUnitCollectionIterator and IteratorAggregate::getIterator(): Traversable, because class SebastianBergmann\CodeUnit\CodeUnitCollectionIterator is not available in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/CodeUnitCollection.php on line 50 [30-Apr-2025 04:30:51 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/InterfaceMethodUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/InterfaceMethodUnit.php on line 15 [30-Apr-2025 04:36:15 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/FunctionUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/FunctionUnit.php on line 15 [30-Apr-2025 05:52:36 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/ClassMethodUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/ClassMethodUnit.php on line 15 [30-Apr-2025 05:58:36 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/TraitMethodUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/TraitMethodUnit.php on line 15 [30-Apr-2025 07:36:20 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/ClassUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/ClassUnit.php on line 15 [30-Apr-2025 10:15:43 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/FileUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/FileUnit.php on line 15 [13-May-2025 07:06:54 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/ClassMethodUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/ClassMethodUnit.php on line 15 [13-May-2025 07:14:12 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/FileUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/FileUnit.php on line 15 [13-May-2025 07:17:39 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/ClassUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/ClassUnit.php on line 15 [13-May-2025 07:26:41 UTC] PHP Fatal error: Could not check compatibility between SebastianBergmann\CodeUnit\CodeUnitCollection::getIterator(): SebastianBergmann\CodeUnit\CodeUnitCollectionIterator and IteratorAggregate::getIterator(): Traversable, because class SebastianBergmann\CodeUnit\CodeUnitCollectionIterator is not available in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/CodeUnitCollection.php on line 50 [13-May-2025 07:49:52 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/FunctionUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/FunctionUnit.php on line 15 [13-May-2025 07:50:21 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/InterfaceUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/InterfaceUnit.php on line 15 [13-May-2025 08:05:47 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/TraitMethodUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/TraitMethodUnit.php on line 15 [13-May-2025 08:21:53 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/TraitUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/TraitUnit.php on line 15 [13-May-2025 08:23:47 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/InterfaceMethodUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/InterfaceMethodUnit.php on line 15 [14-May-2025 00:44:55 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/ClassUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/ClassUnit.php on line 15 [14-May-2025 00:52:08 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/FileUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/FileUnit.php on line 15 [14-May-2025 00:54:06 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/InterfaceMethodUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/InterfaceMethodUnit.php on line 15 [14-May-2025 01:06:00 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/FunctionUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/FunctionUnit.php on line 15 [14-May-2025 01:06:15 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/TraitUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/TraitUnit.php on line 15 [14-May-2025 01:16:04 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/ClassMethodUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/ClassMethodUnit.php on line 15 [14-May-2025 01:17:31 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/TraitMethodUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/TraitMethodUnit.php on line 15 [14-May-2025 01:23:29 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\CodeUnit\CodeUnit" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/InterfaceUnit.php:15 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/InterfaceUnit.php on line 15 [14-May-2025 01:28:53 UTC] PHP Fatal error: Could not check compatibility between SebastianBergmann\CodeUnit\CodeUnitCollection::getIterator(): SebastianBergmann\CodeUnit\CodeUnitCollectionIterator and IteratorAggregate::getIterator(): Traversable, because class SebastianBergmann\CodeUnit\CodeUnitCollectionIterator is not available in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/CodeUnitCollection.php on line 50 PK �n�\XVX� � src/Mapper.phpnu �[��� <?php declare(strict_types=1); /* * This file is part of sebastian/code-unit. * * (c) Sebastian Bergmann <sebastian@phpunit.de> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace SebastianBergmann\CodeUnit; use function array_keys; use function array_merge; use function array_unique; use function array_values; use function class_exists; use function explode; use function function_exists; use function interface_exists; use function ksort; use function method_exists; use function sort; use function sprintf; use function str_contains; use function trait_exists; use ReflectionClass; use ReflectionFunction; use ReflectionMethod; final class Mapper { /** * @psalm-return array<string,list<int>> */ public function codeUnitsToSourceLines(CodeUnitCollection $codeUnits): array { $result = []; foreach ($codeUnits as $codeUnit) { $sourceFileName = $codeUnit->sourceFileName(); if (!isset($result[$sourceFileName])) { $result[$sourceFileName] = []; } $result[$sourceFileName] = array_merge($result[$sourceFileName], $codeUnit->sourceLines()); } foreach (array_keys($result) as $sourceFileName) { $result[$sourceFileName] = array_values(array_unique($result[$sourceFileName])); sort($result[$sourceFileName]); } ksort($result); return $result; } /** * @throws InvalidCodeUnitException * @throws ReflectionException */ public function stringToCodeUnits(string $unit): CodeUnitCollection { if (str_contains($unit, '::')) { [$firstPart, $secondPart] = explode('::', $unit); if ($this->isUserDefinedFunction($secondPart)) { return CodeUnitCollection::fromList(CodeUnit::forFunction($secondPart)); } if ($this->isUserDefinedMethod($firstPart, $secondPart)) { return CodeUnitCollection::fromList(CodeUnit::forClassMethod($firstPart, $secondPart)); } if ($this->isUserDefinedInterface($firstPart)) { return CodeUnitCollection::fromList(CodeUnit::forInterfaceMethod($firstPart, $secondPart)); } if ($this->isUserDefinedTrait($firstPart)) { return CodeUnitCollection::fromList(CodeUnit::forTraitMethod($firstPart, $secondPart)); } } else { if ($this->isUserDefinedClass($unit)) { $units = [CodeUnit::forClass($unit)]; foreach ($this->reflectorForClass($unit)->getTraits() as $trait) { if (!$trait->isUserDefined()) { // @codeCoverageIgnoreStart continue; // @codeCoverageIgnoreEnd } $units[] = CodeUnit::forTrait($trait->getName()); } return CodeUnitCollection::fromList(...$units); } if ($this->isUserDefinedInterface($unit)) { return CodeUnitCollection::fromList(CodeUnit::forInterface($unit)); } if ($this->isUserDefinedTrait($unit)) { return CodeUnitCollection::fromList(CodeUnit::forTrait($unit)); } if ($this->isUserDefinedFunction($unit)) { return CodeUnitCollection::fromList(CodeUnit::forFunction($unit)); } } throw new InvalidCodeUnitException( sprintf( '"%s" is not a valid code unit', $unit ) ); } /** * @psalm-param class-string $className * * @throws ReflectionException */ private function reflectorForClass(string $className): ReflectionClass { try { return new ReflectionClass($className); // @codeCoverageIgnoreStart } catch (\ReflectionException $e) { throw new ReflectionException( $e->getMessage(), $e->getCode(), $e ); } // @codeCoverageIgnoreEnd } /** * @throws ReflectionException */ private function isUserDefinedFunction(string $functionName): bool { if (!function_exists($functionName)) { return false; } try { return (new ReflectionFunction($functionName))->isUserDefined(); // @codeCoverageIgnoreStart } catch (\ReflectionException $e) { throw new ReflectionException( $e->getMessage(), $e->getCode(), $e ); } // @codeCoverageIgnoreEnd } /** * @throws ReflectionException */ private function isUserDefinedClass(string $className): bool { if (!class_exists($className)) { return false; } try { return (new ReflectionClass($className))->isUserDefined(); // @codeCoverageIgnoreStart } catch (\ReflectionException $e) { throw new ReflectionException( $e->getMessage(), $e->getCode(), $e ); } // @codeCoverageIgnoreEnd } /** * @throws ReflectionException */ private function isUserDefinedInterface(string $interfaceName): bool { if (!interface_exists($interfaceName)) { return false; } try { return (new ReflectionClass($interfaceName))->isUserDefined(); // @codeCoverageIgnoreStart } catch (\ReflectionException $e) { throw new ReflectionException( $e->getMessage(), $e->getCode(), $e ); } // @codeCoverageIgnoreEnd } /** * @throws ReflectionException */ private function isUserDefinedTrait(string $traitName): bool { if (!trait_exists($traitName)) { return false; } try { return (new ReflectionClass($traitName))->isUserDefined(); // @codeCoverageIgnoreStart } catch (\ReflectionException $e) { throw new ReflectionException( $e->getMessage(), $e->getCode(), $e ); } // @codeCoverageIgnoreEnd } /** * @throws ReflectionException */ private function isUserDefinedMethod(string $className, string $methodName): bool { if (!class_exists($className)) { // @codeCoverageIgnoreStart return false; // @codeCoverageIgnoreEnd } if (!method_exists($className, $methodName)) { // @codeCoverageIgnoreStart return false; // @codeCoverageIgnoreEnd } try { return (new ReflectionMethod($className, $methodName))->isUserDefined(); // @codeCoverageIgnoreStart } catch (\ReflectionException $e) { throw new ReflectionException( $e->getMessage(), $e->getCode(), $e ); } // @codeCoverageIgnoreEnd } } PK �n�\��N' src/CodeUnitCollection.phpnu �[��� <?php declare(strict_types=1); /* * This file is part of sebastian/code-unit. * * (c) Sebastian Bergmann <sebastian@phpunit.de> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace SebastianBergmann\CodeUnit; use function array_merge; use function count; use Countable; use IteratorAggregate; /** * @template-implements IteratorAggregate<int, CodeUnit> * * @psalm-immutable */ final class CodeUnitCollection implements Countable, IteratorAggregate { /** * @psalm-var list<CodeUnit> */ private readonly array $codeUnits; public static function fromList(CodeUnit ...$codeUnits): self { return new self($codeUnits); } /** * @psalm-param list<CodeUnit> $codeUnits */ private function __construct(array $codeUnits) { $this->codeUnits = $codeUnits; } /** * @psalm-return list<CodeUnit> */ public function asArray(): array { return $this->codeUnits; } public function getIterator(): CodeUnitCollectionIterator { return new CodeUnitCollectionIterator($this); } public function count(): int { return count($this->codeUnits); } public function isEmpty(): bool { return empty($this->codeUnits); } public function mergeWith(self $other): self { return new self( array_merge( $this->asArray(), $other->asArray() ) ); } } PK �n�\l��` src/InterfaceMethodUnit.phpnu �[��� <?php declare(strict_types=1); /* * This file is part of sebastian/code-unit. * * (c) Sebastian Bergmann <sebastian@phpunit.de> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace SebastianBergmann\CodeUnit; /** * @psalm-immutable */ final class InterfaceMethodUnit extends CodeUnit { /** * @psalm-assert-if-true InterfaceMethod $this */ public function isInterfaceMethod(): bool { return true; } } PK �n�\�r�Y src/FunctionUnit.phpnu �[��� <?php declare(strict_types=1); /* * This file is part of sebastian/code-unit. * * (c) Sebastian Bergmann <sebastian@phpunit.de> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace SebastianBergmann\CodeUnit; /** * @psalm-immutable */ final class FunctionUnit extends CodeUnit { /** * @psalm-assert-if-true FunctionUnit $this */ public function isFunction(): bool { return true; } } PK �n�\&<��� � src/exceptions/error_lognu �[��� [13-Apr-2025 16:58:01 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\CodeUnit\Exception" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/exceptions/ReflectionException.php:14 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/exceptions/ReflectionException.php on line 14 [14-Apr-2025 01:16:23 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\CodeUnit\Exception" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/exceptions/NoTraitException.php:14 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/exceptions/NoTraitException.php on line 14 [14-Apr-2025 03:43:50 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\CodeUnit\Exception" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/exceptions/InvalidCodeUnitException.php:14 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/exceptions/InvalidCodeUnitException.php on line 14 [22-Apr-2025 04:01:17 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\CodeUnit\Exception" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/exceptions/ReflectionException.php:14 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/exceptions/ReflectionException.php on line 14 [22-Apr-2025 07:04:00 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\CodeUnit\Exception" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/exceptions/InvalidCodeUnitException.php:14 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/exceptions/InvalidCodeUnitException.php on line 14 [22-Apr-2025 11:05:26 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\CodeUnit\Exception" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/exceptions/NoTraitException.php:14 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/exceptions/NoTraitException.php on line 14 [24-Apr-2025 21:38:04 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\CodeUnit\Exception" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/exceptions/NoTraitException.php:14 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/exceptions/NoTraitException.php on line 14 [25-Apr-2025 02:53:55 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\CodeUnit\Exception" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/exceptions/InvalidCodeUnitException.php:14 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/exceptions/InvalidCodeUnitException.php on line 14 [25-Apr-2025 04:44:06 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\CodeUnit\Exception" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/exceptions/ReflectionException.php:14 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/exceptions/ReflectionException.php on line 14 [30-Apr-2025 05:45:05 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\CodeUnit\Exception" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/exceptions/InvalidCodeUnitException.php:14 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/exceptions/InvalidCodeUnitException.php on line 14 [30-Apr-2025 07:21:32 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\CodeUnit\Exception" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/exceptions/ReflectionException.php:14 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/exceptions/ReflectionException.php on line 14 [30-Apr-2025 10:08:39 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\CodeUnit\Exception" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/exceptions/NoTraitException.php:14 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/exceptions/NoTraitException.php on line 14 [30-Apr-2025 10:15:13 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\CodeUnit\Exception" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/exceptions/NoTraitException.php:14 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/exceptions/NoTraitException.php on line 14 [30-Apr-2025 15:38:08 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\CodeUnit\Exception" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/exceptions/ReflectionException.php:14 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/exceptions/ReflectionException.php on line 14 [30-Apr-2025 20:07:45 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\CodeUnit\Exception" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/exceptions/InvalidCodeUnitException.php:14 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/exceptions/InvalidCodeUnitException.php on line 14 [13-May-2025 19:10:18 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\CodeUnit\Exception" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/exceptions/NoTraitException.php:14 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/exceptions/NoTraitException.php on line 14 [13-May-2025 19:20:10 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\CodeUnit\Exception" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/exceptions/InvalidCodeUnitException.php:14 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/exceptions/InvalidCodeUnitException.php on line 14 [13-May-2025 19:21:48 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\CodeUnit\Exception" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/exceptions/ReflectionException.php:14 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/code-unit/src/exceptions/ReflectionException.php on line 14 PK �n�\w�kj j src/exceptions/Exception.phpnu �[��� <?php declare(strict_types=1); /* * This file is part of sebastian/code-unit. * * (c) Sebastian Bergmann <sebastian@phpunit.de> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace SebastianBergmann\CodeUnit; use Throwable; interface Exception extends Throwable { } PK �n�\�6*a� � + src/exceptions/InvalidCodeUnitException.phpnu �[��� <?php declare(strict_types=1); /* * This file is part of sebastian/code-unit. * * (c) Sebastian Bergmann <sebastian@phpunit.de> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace SebastianBergmann\CodeUnit; use RuntimeException; final class InvalidCodeUnitException extends RuntimeException implements Exception { } PK �n�\��Ζ � # src/exceptions/NoTraitException.phpnu �[��� <?php declare(strict_types=1); /* * This file is part of sebastian/code-unit. * * (c) Sebastian Bergmann <sebastian@phpunit.de> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace SebastianBergmann\CodeUnit; use RuntimeException; final class NoTraitException extends RuntimeException implements Exception { } PK �n�\O� � &