Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

T16064 ctype null #16068

Merged
merged 3 commits into from
Aug 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG-5.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Fixed
- Fixed and improved return type of `object` & `?object` [#16023](https://github.com/phalcon/cphalcon/issues/16023)
- Fixed `Phalcon\Filter\Validation\Validator\Digit` to use only strings for `ctype_*` calls [#16064](https://github.com/phalcon/cphalcon/issues/16064)

# [5.0.0rc4](https://github.com/phalcon/cphalcon/releases/tag/v5.0.0RC4) (2022-08-08)

Expand Down
2 changes: 1 addition & 1 deletion phalcon/Filter/Validation/Validator/Digit.zep
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class Digit extends AbstractValidator
return true;
}

if is_int(value) || ctype_digit(value) {
if is_int(value) || ctype_digit((string) value) {
return true;
}

Expand Down
82 changes: 41 additions & 41 deletions phalcon/Html/TagFactory.zep
Original file line number Diff line number Diff line change
Expand Up @@ -26,47 +26,47 @@ use Phalcon\Factory\AbstractFactory;
* @property EscaperInterface $escaper
* @property array $services
*
* @method a(string $href, string $text, array $attributes = [], bool $raw = false): string
* @method base(string $href, array $attributes = []): string
* @method body(array $attributes = []): string
* @method button(string $text, array $attributes = [], bool $raw = false): string
* @method close(string $tag, bool $raw = false): string
* @method doctype(int $flag, string $delimiter): string
* @method element(string $tag, string $text, array $attributes = [], bool $raw = false): string
* @method form(array $attributes = []): string
* @method img(string $src, array $attributes = []): string
* @method inputCheckbox(string $name, string $value = null, array $attributes = []): string
* @method inputColor(string $name, string $value = null, array $attributes = []): string
* @method inputDate(string $name, string $value = null, array $attributes = []): string
* @method inputDateTime(string $name, string $value = null, array $attributes = []): string
* @method inputDateTimeLocal(string $name, string $value = null, array $attributes = []): string
* @method inputEmail(string $name, string $value = null, array $attributes = []): string
* @method inputFile(string $name, string $value = null, array $attributes = []): string
* @method inputHidden(string $name, string $value = null, array $attributes = []): string
* @method inputImage(string $name, string $value = null, array $attributes = []): string
* @method inputInput(string $name, string $value = null, array $attributes = []): string
* @method inputMonth(string $name, string $value = null, array $attributes = []): string
* @method inputNumeric(string $name, string $value = null, array $attributes = []): string
* @method inputPassword(string $name, string $value = null, array $attributes = []): string
* @method inputRadio(string $name, string $value = null, array $attributes = []): string
* @method inputRange(string $name, string $value = null, array $attributes = []): string
* @method inputSearch(string $name, string $value = null, array $attributes = []): string
* @method inputSelect(string $name, string $value = null, array $attributes = []): string
* @method inputSubmit(string $name, string $value = null, array $attributes = []): string
* @method inputTel(string $name, string $value = null, array $attributes = []): string
* @method inputText(string $name, string $value = null, array $attributes = []): string
* @method inputTextarea(string $name, string $value = null, array $attributes = []): string
* @method inputTime(string $name, string $value = null, array $attributes = []): string
* @method inputUrl(string $name, string $value = null, array $attributes = []): string
* @method inputWeek(string $name, string $value = null, array $attributes = []): string
* @method label(string $label, array $attributes = [], bool $raw = false): string
* @method link(string $indent = ' ', string $delimiter = PHP_EOL): string
* @method meta(string $indent = ' ', string $delimiter = PHP_EOL): string
* @method ol(string $text, array $attributes = [], bool $raw = false): string
* @method script(string $indent = ' ', string $delimiter = PHP_EOL): string
* @method style(string $indent = ' ', string $delimiter = PHP_EOL): string
* @method title(string $indent = ' ', string $delimiter = PHP_EOL): string
* @method ul(string $text, array $attributes = [], bool $raw = false): string
* @method string a(string $href, string $text, array $attributes = [], bool $raw = false)
* @method string base(string $href, array $attributes = [])
* @method string body(array $attributes = [])
* @method string button(string $text, array $attributes = [], bool $raw = false)
* @method string close(string $tag, bool $raw = false)
* @method string doctype(int $flag, string $delimiter)
* @method string element(string $tag, string $text, array $attributes = [], bool $raw = false)
* @method string form(array $attributes = [])
* @method string img(string $src, array $attributes = [])
* @method string inputCheckbox(string $name, string $value = null, array $attributes = [])
* @method string inputColor(string $name, string $value = null, array $attributes = [])
* @method string inputDate(string $name, string $value = null, array $attributes = [])
* @method string inputDateTime(string $name, string $value = null, array $attributes = [])
* @method string inputDateTimeLocal(string $name, string $value = null, array $attributes = [])
* @method string inputEmail(string $name, string $value = null, array $attributes = [])
* @method string inputFile(string $name, string $value = null, array $attributes = [])
* @method string inputHidden(string $name, string $value = null, array $attributes = [])
* @method string inputImage(string $name, string $value = null, array $attributes = [])
* @method string inputInput(string $name, string $value = null, array $attributes = [])
* @method string inputMonth(string $name, string $value = null, array $attributes = [])
* @method string inputNumeric(string $name, string $value = null, array $attributes = [])
* @method string inputPassword(string $name, string $value = null, array $attributes = [])
* @method string inputRadio(string $name, string $value = null, array $attributes = [])
* @method string inputRange(string $name, string $value = null, array $attributes = [])
* @method string inputSearch(string $name, string $value = null, array $attributes = [])
* @method string inputSelect(string $name, string $value = null, array $attributes = [])
* @method string inputSubmit(string $name, string $value = null, array $attributes = [])
* @method string inputTel(string $name, string $value = null, array $attributes = [])
* @method string inputText(string $name, string $value = null, array $attributes = [])
* @method string inputTextarea(string $name, string $value = null, array $attributes = [])
* @method string inputTime(string $name, string $value = null, array $attributes = [])
* @method string inputUrl(string $name, string $value = null, array $attributes = [])
* @method string inputWeek(string $name, string $value = null, array $attributes = [])
* @method string label(string $label, array $attributes = [], bool $raw = false)
* @method string link(string $indent = ' ', string $delimiter = PHP_EOL)
* @method string meta(string $indent = ' ', string $delimiter = PHP_EOL)
* @method string ol(string $text, array $attributes = [], bool $raw = false)
* @method string script(string $indent = ' ', string $delimiter = PHP_EOL)
* @method string style(string $indent = ' ', string $delimiter = PHP_EOL)
* @method string title(string $indent = ' ', string $delimiter = PHP_EOL)
* @method string ul(string $text, array $attributes = [], bool $raw = false)
*/
class TagFactory extends AbstractFactory
{
Expand Down