From 67edd3460d7bde6b61b93cfe3900d56a5c1005ac Mon Sep 17 00:00:00 2001 From: Leonardo Lara Rodrigues Date: Thu, 5 Jun 2025 19:27:32 -0300 Subject: [PATCH] sync with en rev --- language/control-structures/match.xml | 6 +++--- language/functions.xml | 5 +++-- reference/filter/functions/filter-has-var.xml | 4 ++-- reference/info/functions/assert.xml | 4 ++-- .../mongodb/driver/exception/bulkwritecommandexception.xml | 4 ++-- 5 files changed, 12 insertions(+), 11 deletions(-) diff --git a/language/control-structures/match.xml b/language/control-structures/match.xml index 1a7a0644d..8b2dd1d22 100644 --- a/language/control-structures/match.xml +++ b/language/control-structures/match.xml @@ -1,5 +1,5 @@ - + match @@ -290,8 +290,8 @@ string(11) "adolescente" $texto = 'Bienvenue chez nous'; $resultado = match (true) { - str_contains($texto, 'Welcome') || str_contains($texto, 'Hello') => 'en', - str_contains($texto, 'Bienvenue') || str_contains($texto, 'Bonjour') => 'fr', + str_contains($text, 'Welcome'), str_contains($text, 'Hello') => 'en', + str_contains($text, 'Bienvenue'), str_contains($text, 'Bonjour') => 'fr', // ... }; diff --git a/language/functions.xml b/language/functions.xml index 64f37111c..31801b02d 100644 --- a/language/functions.xml +++ b/language/functions.xml @@ -1,5 +1,5 @@ - + Funções @@ -282,7 +282,8 @@ echo $str; // imprime 'Isto é uma string, e alguma coisa mais.' - É um erro passar uma expressão constante como argumento em um parâmetro que espera ser passado por referência. + É um erro passar uma expressão constante como um argumento para um parâmetro + que espera ser passado por referência. diff --git a/reference/filter/functions/filter-has-var.xml b/reference/filter/functions/filter-has-var.xml index b3d79285d..0b11ab5e4 100755 --- a/reference/filter/functions/filter-has-var.xml +++ b/reference/filter/functions/filter-has-var.xml @@ -1,10 +1,10 @@ - + filter_has_var - Verifica se uma variável de um especificado tipo existe + Verifica se uma variável de um tipo especificado existe &reftitle.description; diff --git a/reference/info/functions/assert.xml b/reference/info/functions/assert.xml index 9dcf2a794..242ad186a 100644 --- a/reference/info/functions/assert.xml +++ b/reference/info/functions/assert.xml @@ -1,5 +1,5 @@ - + assert @@ -91,7 +91,7 @@ Uma função definida pelo usuário a ser chamada quando a asserção falha. - A assinatura deve ser: + Sua assinatura deve ser: voidassert_callback stringfile diff --git a/reference/mongodb/mongodb/driver/exception/bulkwritecommandexception.xml b/reference/mongodb/mongodb/driver/exception/bulkwritecommandexception.xml index a650a24fb..fca421b01 100644 --- a/reference/mongodb/mongodb/driver/exception/bulkwritecommandexception.xml +++ b/reference/mongodb/mongodb/driver/exception/bulkwritecommandexception.xml @@ -1,5 +1,5 @@ - + @@ -104,7 +104,7 @@ Um MongoDB\Driver\BulkWriteCommandResult relatando o resultado de quaisquer operações bem-sucedidas que foram executadas antes do - erro ser encontrado. Este valor pode não ser &null; se não for possível + erro ser encontrado. Este valor pode ser &null; se não for possível determinar que pelo menos uma gravação foi realizada com sucesso (e reconhecida).