Skip to content

Commit

Permalink
Rename SubFields to Fields
Browse files Browse the repository at this point in the history
  • Loading branch information
vinkla committed Oct 19, 2023
1 parent ec82093 commit d093257
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,13 @@ The `Writable` trait has been renamed to `Immutable`.
+use Extended\ACF\Fields\Settings\Immutable;
```

The `SubFields` trait has been renamed to `Fields`.

```diff
-use Extended\ACF\Fields\Settings\SubFields;
+use Extended\ACF\Fields\Settings\Fields;
```

Changelog: [`13.0.0...14.0.0`](https://github.com/vinkla/extended-acf/compare/13.0.0...14.0.0)

### 13
Expand Down
4 changes: 2 additions & 2 deletions src/Fields/Group.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@
namespace Extended\ACF\Fields;

use Extended\ACF\Fields\Settings\ConditionalLogic;
use Extended\ACF\Fields\Settings\Fields;
use Extended\ACF\Fields\Settings\Instructions;
use Extended\ACF\Fields\Settings\Layout;
use Extended\ACF\Fields\Settings\Required;
use Extended\ACF\Fields\Settings\SubFields;
use Extended\ACF\Fields\Settings\Wrapper;

class Group extends Field
{
use ConditionalLogic;
use Instructions;
use Layout;
use SubFields;
use Fields;
use Required;
use Wrapper;

Expand Down
4 changes: 2 additions & 2 deletions src/Fields/Layout.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@

namespace Extended\ACF\Fields;

use Extended\ACF\Fields\Settings\Fields;
use Extended\ACF\Fields\Settings\MinMax;
use Extended\ACF\Fields\Settings\SubFields;
use InvalidArgumentException;

class Layout extends Field
{
use MinMax;
use SubFields;
use Fields;

protected string $keyPrefix = 'layout';

Expand Down
4 changes: 2 additions & 2 deletions src/Fields/Repeater.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@

use Extended\ACF\Fields\Settings\ButtonLabel;
use Extended\ACF\Fields\Settings\ConditionalLogic;
use Extended\ACF\Fields\Settings\Fields;
use Extended\ACF\Fields\Settings\Instructions;
use Extended\ACF\Fields\Settings\Layout;
use Extended\ACF\Fields\Settings\MinMax;
use Extended\ACF\Fields\Settings\Required;
use Extended\ACF\Fields\Settings\SubFields;
use Extended\ACF\Fields\Settings\Wrapper;

class Repeater extends Field
Expand All @@ -29,7 +29,7 @@ class Repeater extends Field
use Instructions;
use Layout;
use MinMax;
use SubFields;
use Fields;
use Required;
use Wrapper;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace Extended\ACF\Fields\Settings;

trait SubFields
trait Fields
{
public function fields(array $fields): static
{
Expand Down

0 comments on commit d093257

Please sign in to comment.