Fix pipeline rector and phpunit

This commit is contained in:
Julie Lenaerts 2024-11-04 17:47:08 +01:00 committed by Julien Fastré
parent b01c9b86db
commit 5eec4f1281
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB
2 changed files with 1 additions and 36 deletions

View File

@ -129,7 +129,7 @@ class ActivityReasonCategory implements \Stringable
*
* @return ActivityReasonCategory
*/
public function setName($name)
public function setName(array $name)
{
$this->name = $name;

View File

@ -1,35 +0,0 @@
<?php
declare(strict_types=1);
/*
* Chill is a software for social workers
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\Migrations\Budget;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20240918143139 extends AbstractMigration
{
public function getDescription(): string
{
return 'Remove familymember column from resource and charge table';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE chill_budget.charge DROP familymember_id');
$this->addSql('ALTER TABLE chill_budget.resource DROP familymember_id');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE chill_budget.resource ADD familymember_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE chill_budget.charge ADD familymember_id INT DEFAULT NULL');
}
}