refactor: run Rector TYPE_DECLARATIONS
ruleset
This commit is contained in:
parent
1728e0fcd5
commit
e5c13dd870
2 changed files with 4 additions and 9 deletions
|
@ -20,6 +20,7 @@ return static function (ContainerConfigurator $containerConfigurator): void {
|
||||||
$parameters->set(Option::SETS, [
|
$parameters->set(Option::SETS, [
|
||||||
SetList::CODE_QUALITY,
|
SetList::CODE_QUALITY,
|
||||||
SetList::DEAD_CODE,
|
SetList::DEAD_CODE,
|
||||||
|
SetList::TYPE_DECLARATION,
|
||||||
// DowngradeSetList::PHP_80,
|
// DowngradeSetList::PHP_80,
|
||||||
// DowngradeSetList::PHP_74,
|
// DowngradeSetList::PHP_74,
|
||||||
// DowngradeSetList::PHP_73,
|
// DowngradeSetList::PHP_73,
|
||||||
|
|
|
@ -63,10 +63,8 @@ define( 'PRODUCTION_ENV', false );
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @see includes\Activator::activate()
|
* @see includes\Activator::activate()
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
function activate_footnotes() {
|
function activate_footnotes(): void {
|
||||||
/**
|
/**
|
||||||
* Provides plugin activation functionality.
|
* Provides plugin activation functionality.
|
||||||
*/
|
*/
|
||||||
|
@ -80,10 +78,8 @@ function activate_footnotes() {
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @see includes\Deactivator::deactivate()
|
* @see includes\Deactivator::deactivate()
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
function deactivate_footnotes() {
|
function deactivate_footnotes(): void {
|
||||||
/**
|
/**
|
||||||
* Provides plugin deactivation functionality.
|
* Provides plugin deactivation functionality.
|
||||||
*/
|
*/
|
||||||
|
@ -108,10 +104,8 @@ require_once plugin_dir_path( __FILE__ ) . 'includes/class-core.php';
|
||||||
* the plugin from this point in the file does not affect the page life cycle.
|
* the plugin from this point in the file does not affect the page life cycle.
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
function run_footnotes() {
|
function run_footnotes(): void {
|
||||||
/**
|
/**
|
||||||
* The plugin core.
|
* The plugin core.
|
||||||
*
|
*
|
||||||
|
|
Reference in a new issue