Skip to content

Commit d750456

Browse files
committed
resolve deprecation warnings
1 parent 91b0820 commit d750456

File tree

4 files changed

+25
-13
lines changed

4 files changed

+25
-13
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
},
2727
"require-dev": {
2828
"mockery/mockery": "^1.0",
29-
"phpunit/phpunit": "^7.0|^8.0|^9.0|^10.5"
29+
"phpunit/phpunit": "^7.0|^8.0|^9.0|^10.5",
30+
"phpstan/phpstan": "^2.1"
3031
},
3132
"autoload": {
3233
"psr-4": {

phpunit.xml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit backupGlobals="false"
3-
backupStaticAttributes="false"
4-
beStrictAboutTestsThatDoNotTestAnything="false"
5-
bootstrap="vendor/autoload.php"
6-
colors="true"
7-
convertErrorsToExceptions="true"
8-
convertNoticesToExceptions="true"
9-
convertWarningsToExceptions="true"
10-
processIsolation="false"
11-
stopOnFailure="false"
3+
backupStaticAttributes="false"
4+
beStrictAboutTestsThatDoNotTestAnything="false"
5+
bootstrap="vendor/autoload.php"
6+
colors="true"
7+
convertDeprecationsToExceptions="true"
8+
convertErrorsToExceptions="true"
9+
convertNoticesToExceptions="true"
10+
convertWarningsToExceptions="true"
11+
processIsolation="false"
12+
stopOnFailure="false"
1213
>
1314
<testsuites>
1415
<testsuite name="Package Test Suite">

src/Events/SearchPerformed.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
<?php
2-
32
namespace TeamTNT\Scout\Events;
43

54
class SearchPerformed
65
{
6+
public $query;
7+
public $isBooleanSearch;
8+
public $indexName;
9+
public $model;
10+
public $ids;
11+
public $hits;
12+
public $execution_time;
13+
public $driver;
14+
715
public function __construct($builder, $results, $isBooleanSearch = false)
816
{
917
$this->query = $builder->query;

src/TNTSearchScoutServiceProvider.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<?php namespace TeamTNT\Scout;
1+
<?php
2+
namespace TeamTNT\Scout;
23

34
use Illuminate\Support\ServiceProvider;
45
use Laravel\Scout\Builder;
@@ -10,6 +11,7 @@
1011

1112
class TNTSearchScoutServiceProvider extends ServiceProvider
1213
{
14+
public $constraints;
1315
/**
1416
* Bootstrap any application services.
1517
*
@@ -36,7 +38,7 @@ public function boot()
3638
if ($this->app->runningInConsole()) {
3739
$this->commands([
3840
ImportCommand::class,
39-
StatusCommand::class
41+
StatusCommand::class,
4042
]);
4143
}
4244

0 commit comments

Comments
 (0)