Fixture.php 544 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * This file is part of the Carbon package.
  5. *
  6. * (c) Brian Nesbitt <brian@nesbot.com>
  7. *
  8. * For the full copyright and license information, please view the LICENSE
  9. * file that was distributed with this source code.
  10. */
  11. namespace Tests\PHPStan;
  12. use Carbon\Carbon;
  13. class Fixture
  14. {
  15. public function testCarbonMacroCalledStatically(): string
  16. {
  17. return Carbon::foo(15);
  18. }
  19. public function testCarbonMacroCalledDynamically(): string
  20. {
  21. return Carbon::now()->foo(42);
  22. }
  23. }