tapestry-cloud / tapestry

PHP static site generator using the plates template system
https://www.tapestry.cloud/
MIT License
32 stars 1 forks source link

Fatal error: Access level to Tapestry\Plates\Template::section() must be public #34

Closed carbontwelve closed 7 years ago

carbontwelve commented 7 years ago

It looks as though something has changed with PHP Plates which has made the Tapestry extension of it broken.

Fatal error: Access level to Tapestry\Plates\Template::section() must be public (as in class League\Plates\Template\Template) in C:\Users\Simon\Documents\Projects\tapestry\src\Plates\Template.php on line 16

Call Stack:
    0.0003     124736   1. {main}() C:\Users\Simon\Documents\Projects\tapestry\vendor\phpunit\phpunit\phpunit:0
    0.0047     408328   2. PHPUnit_TextUI_Command::main() C:\Users\Simon\Documents\Projects\tapestry\vendor\phpunit\phpunit\phpunit:47
    0.0047     408656   3. PHPUnit_TextUI_Command->run() C:\Users\Simon\Documents\Projects\tapestry\vendor\phpunit\phpunit\src\TextUI\Command.php:106
    0.1025    2061024   4. PHPUnit_TextUI_TestRunner->doRun() C:\Users\Simon\Documents\Projects\tapestry\vendor\phpunit\phpunit\src\TextUI\Command.php:155
    0.1488    2198744   5. PHPUnit_Framework_TestSuite->run() C:\Users\Simon\Documents\Projects\tapestry\vendor\phpunit\phpunit\src\TextUI\TestRunner.php:429
    0.1720    2496912   6. PHPUnit_Framework_TestSuite->run() C:\Users\Simon\Documents\Projects\tapestry\vendor\phpunit\phpunit\src\Framework\TestSuite.php:747
    0.1787    2501496   7. PHPUnit_Framework_TestCase->run() C:\Users\Simon\Documents\Projects\tapestry\vendor\phpunit\phpunit\src\Framework\TestSuite.php:747
    0.1787    2501496   8. PHPUnit_Framework_TestResult->run() C:\Users\Simon\Documents\Projects\tapestry\vendor\phpunit\phpunit\src\Framework\TestCase.php:726
    0.1788    2502152   9. PHPUnit_Framework_TestCase->runBare() C:\Users\Simon\Documents\Projects\tapestry\vendor\phpunit\phpunit\src\Framework\TestResult.php:685
    0.1789    2518872  10. PHPUnit_Framework_TestCase->runTest() C:\Users\Simon\Documents\Projects\tapestry\vendor\phpunit\phpunit\src\Framework\TestCase.php:770
    0.1789    2519376  11. ReflectionMethod->invokeArgs() C:\Users\Simon\Documents\Projects\tapestry\vendor\phpunit\phpunit\src\Framework\TestCase.php:910
    0.1789    2519576  12. Tapestry\Tests\BuildCommandTest->testDefaultInit() C:\Users\Simon\Documents\Projects\tapestry\vendor\phpunit\phpunit\src\Framework\TestCase.php:910
    0.2072    2520376  13. Tapestry\Tests\CommandTestBase->runCommand() C:\Users\Simon\Documents\Projects\tapestry\tests\BuildCommandTest.php:19
    0.2282    3541048  14. Symfony\Component\Console\Tester\ApplicationTester->run() C:\Users\Simon\Documents\Projects\tapestry\tests\CommandTestBase.php:114
    0.2310    3690416  15. Symfony\Component\Console\Application->run() C:\Users\Simon\Documents\Projects\tapestry\vendor\symfony\console\Tester\ApplicationTester.php:100
    0.2756    3691640  16. Symfony\Component\Console\Application->doRun() C:\Users\Simon\Documents\Projects\tapestry\vendor\symfony\console\Application.php:122
    0.2760    3692192  17. Symfony\Component\Console\Application->doRunCommand() C:\Users\Simon\Documents\Projects\tapestry\vendor\symfony\console\Application.php:191
    0.2760    3692472  18. Symfony\Component\Console\Command\Command->run() C:\Users\Simon\Documents\Projects\tapestry\vendor\symfony\console\Application.php:830
    0.2763    3694792  19. Tapestry\Console\Commands\Command->execute() C:\Users\Simon\Documents\Projects\tapestry\vendor\symfony\console\Command\Command.php:255
    0.2763    3694960  20. Tapestry\Console\Commands\BuildCommand->fire() C:\Users\Simon\Documents\Projects\tapestry\src\Console\Commands\Command.php:26
    0.2773    3727112  21. Tapestry\Generator->generate() C:\Users\Simon\Documents\Projects\tapestry\src\Console\Commands\BuildCommand.php:72
    0.3050    4518248  22. Tapestry\Modules\Content\Compile->__invoke() C:\Users\Simon\Documents\Projects\tapestry\src\Generator.php:39
    0.3053    4519032  23. Tapestry\Entities\Renderers\PlatesRenderer->render() C:\Users\Simon\Documents\Projects\tapestry\src\Modules\Content\Compile.php:142
    0.3053    4519208  24. Tapestry\Plates\Engine->renderFile() C:\Users\Simon\Documents\Projects\tapestry\src\Entities\Renderers\PlatesRenderer.php:69
    0.3053    4519272  25. Tapestry\Plates\Engine->make() C:\Users\Simon\Documents\Projects\tapestry\src\Plates\Engine.php:36
    0.3053    4519440  26. spl_autoload_call() C:\Users\Simon\Documents\Projects\tapestry\src\Plates\Engine.php:19
    0.3053    4519480  27. Composer\Autoload\ClassLoader->loadClass() C:\Users\Simon\Documents\Projects\tapestry\src\Plates\Engine.php:19
    0.3054    4519592  28. Composer\Autoload\includeFile() C:\Users\Simon\Documents\Projects\tapestry\vendor\composer\ClassLoader.php:301
    0.3056    4532824  29. include('C:\Users\Simon\Documents\Projects\tapestry\src\Plates\Template.php') C:\Users\Simon\Documents\Projects\tapestry\vendor\composer\ClassLoader.php:412
carbontwelve commented 7 years ago

Fixed by 3c5dead754e8db42f5d6b75c21618a702a2d4b66