for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Phinx\Migration\AbstractMigration;
class SampleData 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.
{
public function up()
$cards = [
['name' => 'First Card']
];
$tasks = [
[
'name' => 'add a new card',
'isDone' => false,
'priority' => 900,
'cardId' => 1,
],
'name' => 'add some tasks to the new card',
'priority' => 500,
'name' => 'comple all tasks of the new card',
'priority' => 100,
]
$this->table('cards')->insert($cards)->save();
$this->table('tasks')->insert($tasks)->save();
}
public function down()
$this->execute('DELETE FROM tasks');
$this->execute('DELETE FROM cards');
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.