This article shows how to update your application to APF version 3.4.
Version 3.4 is almost fully compatible with it's predecessor. Chapter 2 describes the necessary changes.
With changes for Issue #318 the form validation API has ben changes. Please adapt the following occurrences within your application:
Implementation of interface FormControl:
// old:
public function addValidator(FormValidator &$validator)
// new:
public function addValidator(FormValidator $validator)
// old:
public function addFilter(FormFilter &$filter)
// new:
public function addFilter(FormFilter $filter)
Implementation of interface FormFilter:
// old:
public function __construct(FormControl &$control, FormControl &$button)
// new:
public function __construct(FormControl $control, FormControl $button)
Implementation of interface FormValidator:
// old:
public function __construct(FormControl &$control, FormControl &$button, $type = null)
// new:
public function __construct(FormControl $control, FormControl $button, $type = null)
JetBRAINS supports the development of the APF with PHPStorm licenses and we feel confidential that PHPStorm strongly influences the APF's quality. Use PHPStorm!
Proud to useIntelligent PHP IDE for coding, testing and debugging with pleasureIn order to provide a state-of-the-art web experience and to continuously improve our services we are using cookies. By using this web page you agree to the use of cookies. For more information, please refer to our Privacy policy.