Skip to content

Commit

Permalink
Merge pull request #5 from ianmjones/updates-for-tooling
Browse files Browse the repository at this point in the history
Updates for tooling
  • Loading branch information
polevaultweb authored Feb 7, 2020
2 parents 4cc44fa + 7f4cd67 commit bcb2738
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}
],
"require": {
"php": ">=5.3.0",
"php": ">=5.5.0",
"nesbot/carbon": "^1.22"
},
"autoload": {
Expand Down
2 changes: 1 addition & 1 deletion src/WP_Queue/Connections/ConnectionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function release( $job );
* @param Job $job
* @param Exception $exception
*
* @return
* @return bool
*/
public function failure( $job, Exception $exception );

Expand Down
4 changes: 2 additions & 2 deletions src/WP_Queue/Connections/DatabaseConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class DatabaseConnection implements ConnectionInterface {

/**
* @var wpdb
* @var \wpdb
*/
protected $database;

Expand All @@ -26,7 +26,7 @@ class DatabaseConnection implements ConnectionInterface {
/**
* DatabaseQueue constructor.
*
* @param wpdb $wpdb
* @param \wpdb $wpdb
*/
public function __construct( $wpdb ) {
$this->database = $wpdb;
Expand Down
2 changes: 2 additions & 0 deletions src/WP_Queue/Connections/RedisConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ public function release( $job ) {
*
* @param Job $job
* @param Exception $exception
*
* @return bool
*/
public function failure( $job, Exception $exception ) {
//
Expand Down
1 change: 1 addition & 0 deletions src/WP_Queue/QueueManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class QueueManager {
* @param string $connection
*
* @return Queue
* @throws \Exception
*/
public static function resolve( $connection ) {
if ( isset( static::$instances[ $connection ] ) ) {
Expand Down
1 change: 1 addition & 0 deletions src/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* @param string $connection
*
* @return Queue
* @throws Exception
*/
function wp_queue( $connection = '' ) {
if( empty( $connection ) ) {
Expand Down

0 comments on commit bcb2738

Please sign in to comment.