We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7247b2a commit 2899ae6Copy full SHA for 2899ae6
src/validator-docs/Rules/Cpf.php
@@ -11,17 +11,17 @@
11
12
final class Cpf extends Sanitization
13
{
14
- protected function validateFormat($value, $document, $attribute = null)
+ protected function validateCPFFormat(string $value)
15
16
if (!empty($value)) {
17
- return (new ValidatorFormats())->execute($value, $document);
+ return (new ValidatorFormats())->execute($value, 'cpf');
18
}
19
20
21
public function validateCpf($attribute, $value): bool
22
23
24
- if (!$this->validateFormat($value, 'cpf')) {
+ if (!$this->validateCPFFormat($value)) {
25
return false;
26
27
0 commit comments