Repository navigation
filter を原文の変更に追従 (5ファイル) - #629
Open
KentarouTakeda wants to merge 1 commit into
Open
KentarouTakeda wants to merge 1 commit into
KentarouTakeda wants to merge 1 commit into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
filter の 5 ファイルを原文の変更に追従しました。これで filter モジュールの未訳・要更新はなくなります。
原文では次の変更がありました。
filter_var()・filter_input()・filter_has_var()・filter_var_array()・filter_input_array()に「エラー / 例外」の節が追加され、スローする例外が書かれました。対象は、INPUT_*定数以外の値やoptionsの不正なキーに対するValueError・TypeErrorと、PHP 8.5.0 のFILTER_THROW_ON_FAILUREフラグによるFilter\FilterFailedExceptionです。あわせて、PHP 8.0.0 で例外をスローするようになったことが changelog に追記されました(php/doc-en@d5e14b9、filter: document the exceptions of filter_var(), filter_input(), filter_has_var(), and the array variants doc-en#6090)filter_var()に、検証結果の正しい確かめ方の例が 2 つ追加されました。0のように false とみなされる値をfalseとの厳密な比較で判定する例と、FILTER_NULL_ON_FAILUREを使った boolean の検証でnullかどうかを判定する例です(php/doc-en@83dd631、Add examples for checking filter_var() results doc-en#6011)対象ファイル
reference/filter/ (5) — functions/filter-has-var.xml, functions/filter-input-array.xml, functions/filter-input.xml, functions/filter-var-array.xml, functions/filter-var.xml