for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Phinx\Migration\AbstractMigration;
class DefaultPages extends AbstractMigration
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
{
/**
* Migrate Up.
*/
public function up()
$data = [
[
'title' => 'About Bluz Framework',
'alias' => 'about',
'content' => '<p>Bluz Lightweight PHP Framework!</p>',
'keywords' => 'php, php framework, bluz framework',
'description' => 'About Bluz',
'created' => date('Y-m-d H:i:s'),
'userId' => 1
]
];
$pages = $this->table('pages');
$pages->insert($data)
->save();
}
* Migrate Down.
public function down()
$this->execute('DELETE FROM pages');
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.