Skip to content

Commit f64923b

Browse files
authored
Merge pull request #16191 from niden/T15956-clear-form
T15956 clear form
2 parents 23e0bef + 7c023b9 commit f64923b

35 files changed

+98
-141
lines changed

CHANGELOG-5.0.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Fixed
44
- Fixed `Phalcon\Mvc\View\Engine\Volt\Compiler::isTagFactory` to correctly detect a `TagFactory` object without throwing an error [#16097](https://github.com/phalcon/cphalcon/issues/16097)
55
- Fixed default values for `Phalcon\Cli`, `Phalcon\Dispatcher` and `Phalcon\Application` components to ensure not `null` values are passed to methods [#16186](https://github.com/phalcon/cphalcon/issues/16186)
6+
- Fixed `Phalcon\Form::clear` to correctly clear the elements and not recurse [#15956](https://github.com/phalcon/cphalcon/issues/15956)
67

78
## Added
89
- Added `Phalcon\Http\Request::getPatch()` to get a value from a PATCH request [#16188](https://github.com/phalcon/cphalcon/issues/16188)

phalcon/Acl/Adapter/AdapterInterface.zep

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ interface AdapterInterface
3333
* Adds a component to the ACL list
3434
*
3535
* Access names can be a particular action, by example
36-
* search, update, delete, etc or a list of them
36+
* search, update, delete, etc. or a list of them
3737
*/
3838
public function addComponent(componentValue, accessList) -> bool;
3939

@@ -53,7 +53,7 @@ interface AdapterInterface
5353
public function deny(string roleName, string componentName, access, func = null) -> void;
5454

5555
/**
56-
* Removes an access from a component
56+
* Removes access from a component
5757
*/
5858
public function dropComponentAccess(string componentName, accessList) -> void;
5959

phalcon/Acl/Adapter/Memory.zep

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class Memory extends AbstractAdapter
100100
protected accessList;
101101

102102
/**
103-
* Returns latest function used to acquire access
103+
* Returns the latest function used to acquire access
104104
*
105105
* @var mixed
106106
*/
@@ -114,7 +114,7 @@ class Memory extends AbstractAdapter
114114
protected activeFunctionCustomArgumentsCount = 0;
115115

116116
/**
117-
* Returns latest key used to acquire access
117+
* Returns the latest key used to acquire access
118118
*
119119
* @var string|null
120120
*/
@@ -142,7 +142,7 @@ class Memory extends AbstractAdapter
142142
protected func;
143143

144144
/**
145-
* Default action for no arguments is allow
145+
* Default action for no arguments is `allow`
146146
*
147147
* @var mixed
148148
*/
@@ -175,11 +175,11 @@ class Memory extends AbstractAdapter
175175
* Adds a component to the ACL list
176176
*
177177
* Access names can be a particular action, by example
178-
* search, update, delete, etc or a list of them
178+
* search, update, delete, etc. or a list of them
179179
*
180180
* Example:
181181
* ```php
182-
* // Add a component to the the list allowing access to an action
182+
* // Add a component to the list allowing access to an action
183183
* $acl->addComponent(
184184
* new Phalcon\Acl\Component("customers"),
185185
* "search"
@@ -482,7 +482,7 @@ class Memory extends AbstractAdapter
482482
}
483483

484484
/**
485-
* Removes an access from a component
485+
* Removes access from a component
486486
*/
487487
public function dropComponentAccess(string componentName, var accessList) -> void
488488
{
@@ -508,7 +508,7 @@ class Memory extends AbstractAdapter
508508
}
509509

510510
/**
511-
* Returns latest function used to acquire access
511+
* Returns the latest function used to acquire access
512512
*
513513
* @return mixed
514514
*/
@@ -526,7 +526,7 @@ class Memory extends AbstractAdapter
526526
}
527527

528528
/**
529-
* Returns latest key used to acquire access
529+
* Returns the latest key used to acquire access
530530
*/
531531
public function getActiveKey() -> string | null
532532
{

phalcon/Assets/Asset.zep

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,6 @@ namespace Phalcon\Assets;
1616
*```php
1717
* $asset = new \Phalcon\Assets\Asset("js", "js/jquery.js");
1818
*```
19-
*
20-
* @property array $attributes
21-
* @property bool $isAutoVersion
22-
* @property bool $filter
23-
* @property bool $isLocal
24-
* @property string $path
25-
* @property string $sourcePath
26-
* @property string $targetPath
27-
* @property string $targetUri
28-
* @property string $type
29-
* @property string|null $version
30-
*
3119
*/
3220
class Asset implements AssetInterface
3321
{

phalcon/Assets/Collection.zep

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,6 @@ use IteratorAggregate;
1616

1717
/**
1818
* Collection of asset objects
19-
*
20-
* @property array $assets
21-
* @property array $attributes
22-
* @property bool $autoVersion
23-
* @property array $codes
24-
* @property array $filters
25-
* @property bool $join
26-
* @property bool $isLocal
27-
* @property string $prefix
28-
* @property string $sourcePath
29-
* @property bool $targetIsLocal
30-
* @property string $targetPath
31-
* @property string $targetUri
32-
* @property string $version
3319
*/
3420
class Collection implements Countable, IteratorAggregate
3521
{

phalcon/Assets/Filters/CssMin.zep

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ class Cssmin implements FilterInterface
2020
{
2121
/**
2222
* Filters the content using CSSMIN
23-
* NOTE: This functionality is not currently available
23+
*
24+
* > NOTE: This functionality is not currently available
25+
* {: .alert .alert-info }
2426
*/
2527
public function filter(string! content) -> string
2628
{

phalcon/Assets/Filters/JsMin.zep

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ class Jsmin implements FilterInterface
2121
{
2222
/**
2323
* Filters the content using JSMIN
24-
* NOTE: This functionality is not currently available
24+
*
25+
* > NOTE: This functionality is not currently available
26+
* {: .alert .alert-info }
2527
*/
2628
public function filter(string! content) -> string
2729
{

phalcon/Assets/Manager.zep

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@ use Phalcon\Html\TagFactory;
2222

2323
/**
2424
* Manages collections of CSS/JavaScript assets
25-
*
26-
* @property array $collections
27-
* @property bool $implicitOutput
28-
* @property array $options
29-
* @property TagFactory $tagFactory
3025
*/
3126
class Manager extends AbstractInjectionAware
3227
{

phalcon/Autoload/Loader.zep

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,6 @@ use Phalcon\Events\AbstractEventsAware;
1616
* The Phalcon Autoloader provides an easy way to automatically load classes
1717
* (namespaced or not) as well as files. It also features extension loading,
1818
* allowing the user to autoload files with different extensions than .php.
19-
*
20-
* @property string|null $checkedPath
21-
* @property array $classes
22-
* @property array $debug
23-
* @property array $directories
24-
* @property array $extensions
25-
* @property string|callable|null $fileCheckingCallback
26-
* @property array $files
27-
* @property string|null $foundPath
28-
* @property bool $isDebug
29-
* @property bool $isRegistered
30-
* @property array $namespaces
3119
*/
3220
class Loader extends AbstractEventsAware
3321
{

phalcon/Cache/AbstractCache.zep

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ use Traversable;
1717

1818
/**
1919
* This component offers caching capabilities for your application.
20-
* Phalcon\Cache implements PSR-16.
21-
*
22-
* @property AdapterInterface $adapter
2320
*/
2421
abstract class AbstractCache implements CacheInterface
2522
{

0 commit comments

Comments
 (0)