Skip to content
This repository has been archived by the owner on Apr 16, 2022. It is now read-only.

Commit

Permalink
Revert "fix compatibility"
Browse files Browse the repository at this point in the history
This reverts commit d93ffeb.
  • Loading branch information
DarkSide666 committed Aug 27, 2020
1 parent d93ffeb commit 92ecb36
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/union.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ In my model scheam, Client may have multiple invoices and multiple payments. Pay
class Client extends \atk4\data\Model {
public $table = 'client';

protected function init() {
function init() {
parent::init();
$this->addField('name');

Expand Down
2 changes: 1 addition & 1 deletion tests/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Client extends Model
{
public $table = 'client';

protected function init(): void
public function init(): void
{
parent::init();
$this->addField('name');
Expand Down
2 changes: 1 addition & 1 deletion tests/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Invoice extends Model
{
public $table = 'invoice';

protected function init(): void
public function init(): void
{
parent::init();
$this->addField('name');
Expand Down
2 changes: 1 addition & 1 deletion tests/Payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Payment extends Model
{
public $table = 'payment';

protected function init(): void
public function init(): void
{
parent::init();
$this->addField('name');
Expand Down
2 changes: 1 addition & 1 deletion tests/Transaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class Transaction extends UnionModel
{
protected function init(): void
public function init(): void
{
parent::init();

Expand Down
2 changes: 1 addition & 1 deletion tests/Transaction2.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class Transaction2 extends UnionModel
{
protected function init(): void
public function init(): void
{
parent::init();

Expand Down

0 comments on commit 92ecb36

Please sign in to comment.