Make WordPress Core


Ignore:
Timestamp:
03/15/2019 12:15:08 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Build/Test Tools: Add missing access modifiers to factory classes in phpunit/includes/factory.

Props andizer.
Fixes #46504.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/factory/class-wp-unittest-factory-callback-after-create.php

    r44497 r44903  
    66         * @var callable
    77         */
    8         var $callback;
     8        public $callback;
    99
    1010        /**
     
    1313         * @param callable $callback A callback function.
    1414         */
    15         function __construct( $callback ) {
     15        public function __construct( $callback ) {
    1616                $this->callback = $callback;
    1717        }
     
    2424         * @return mixed The possibly altered object.
    2525         */
    26         function call( $object ) {
     26        public function call( $object ) {
    2727                return call_user_func( $this->callback, $object );
    2828        }
Note: See TracChangeset for help on using the changeset viewer.