
Hey everyone! I figured it was time to showcase some of the new features that have been added to the Flight Framework for PHP. Earlier this year th...
For further actions, you may consider blocking this person and/or reporting abuse
I don't think this is the right way to showcase a framework. I'm quite frustrated and probably wasting my time... I downloaded the code from Github, but it immediately gave me errors, so I decided to follow this tutorial step-by-step, but just after installing active-record and trying to create the first table I get the error:
I see that this has already been reported, so I followed your previous suggestion, and I tried updating runway, but the end result is the same. Is there a known solution to this?
Thanks!
Hey! Thanks for letting me know! I just created a project a couple days ago and noticed this as well. I pushed a new update to runway and this problem is fixed! Just run composer update and you should be golden.
I am stacked here: $ php runway make:record posts
Fatal error: Uncaught Error: Class "PHPUnit\Framework\TestCase" not found in D:\WEBDEVELOPE\wa
mp64\www\blog\vendor\flightphp\active-record\tests\commands\RecordCommandTest.php:12
Did you install this with
--no-dev
?No, I did not, It will be nice a video tutorial.
Looks like there was a bug someone found in runway that might be the cause of this. run
composer update flightphp/runway
and see if that fixes it. Should update to 1.1.1No way **!
$ composer update flightphp/runway
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
**Nothing to install, update or remove
Generating autoload files
1 package you are using is looking for funding.
Use the
composer fund
command to find out more!No security vulnerability advisories found.
Tried to run runway:
$ php runway init:sample-db
Could not open input file: runway
No one can learn something broken
Maybe I'll try to learn SLIM
Are you on Windows? I've noticed that Windows can't create the symlinks which might be what you're running into. You'll have to run it fully with
php vendor/bin/runway init:sample-db
mysql -
Return type of flight\debug\database\PdoQueryCapture::exec($statement) should either be compatible with PDO::exec(string $statement): int|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
(MAMP version 7.0)
So just make sure you install the right version of flightphp/tracy-extensions. There's a version for 7.4 and a version for 8+. That's the problem you're running into.
is it a fantasy novel?)
No I promise it's not :)
The same problem..., PHPUnit\Framework\TestCase