Skip to content

Commit 72cdff6

Browse files
committed
Mark get rules as depricated
1 parent be64ebd commit 72cdff6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Traits/HasSettings.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@
1212
*/
1313
trait HasSettings
1414
{
15+
/**
16+
* @deprecated Use getSettingsValue() instead
17+
* Will be removed in the next major version
18+
*
19+
* @return array
20+
*/
21+
public function getRules(): array
22+
{
23+
return $this->getSettingsRules();
24+
}
1525
public function getSettingsRules(): array
1626
{
1727
if (property_exists($this, 'settingsRules') && is_array($this->settingsRules)) {

0 commit comments

Comments
 (0)