joenilson /
fsRepublicaDominicana
| 1 | <?php |
||
| 2 | /* |
||
| 3 | * Copyright (C) 2025 Joe Nilson <joenilson at gmail.com> |
||
| 4 | * |
||
| 5 | * This program is free software: you can redistribute it and/or modify |
||
| 6 | * it under the terms of the GNU Lesser General Public License as |
||
| 7 | * published by the Free Software Foundation, either version 3 of the |
||
| 8 | * License, or (at your option) any later version. |
||
| 9 | * |
||
| 10 | * This program is distributed in the hope that it will be useful, |
||
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
| 13 | * GNU Lesser General Public License for more details. |
||
| 14 | * You should have received a copy of the GNU Lesser General Public License |
||
| 15 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
||
| 16 | */ |
||
| 17 | |||
| 18 | namespace FacturaScripts\Plugins\fsRepublicaDominicana\Extension\Model; |
||
| 19 | |||
| 20 | use Closure; |
||
| 21 | use FacturaScripts\Core\Tools; |
||
| 22 | use FacturaScripts\Dinamic\Model\Proveedor; |
||
|
0 ignored issues
–
show
This use statement conflicts with another class in this namespace,
FacturaScripts\Plugins\f...tension\Model\Proveedor. Consider defining an alias.
Let?s assume that you have a directory layout like this: .
|-- OtherDir
| |-- Bar.php
| `-- Foo.php
`-- SomeDir
`-- Foo.php
and let?s assume the following content of // Bar.php
namespace OtherDir;
use SomeDir\Foo; // This now conflicts the class OtherDir\Foo
If both files PHP Fatal error: Cannot use SomeDir\Foo as Foo because the name is already in use in OtherDir/Foo.php
However, as // Bar.php
namespace OtherDir;
use SomeDir\Foo as SomeDirFoo; // There is no conflict anymore.
Loading history...
|
|||
| 23 | use FacturaScripts\Plugins\fsRepublicaDominicana\Lib\DGII\CommonModelFunctions; |
||
| 24 | |||
| 25 | class LineaAlbaranProveedor |
||
| 26 | { |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var float |
||
| 30 | */ |
||
| 31 | public $rdtaxcdt; |
||
| 32 | /** |
||
| 33 | * @var string |
||
| 34 | */ |
||
| 35 | public $rdtaxcodcdt; |
||
| 36 | /** |
||
| 37 | * @var string |
||
| 38 | */ |
||
| 39 | public $rdtaxcodfirstplate; |
||
| 40 | /** |
||
| 41 | * @var string |
||
| 42 | */ |
||
| 43 | public $rdtaxcodisc; |
||
| 44 | /** |
||
| 45 | * @var string |
||
| 46 | */ |
||
| 47 | public $rdtaxcodlegaltip; |
||
| 48 | /** |
||
| 49 | * @var float |
||
| 50 | */ |
||
| 51 | public $rdtaxfirstplate; |
||
| 52 | /** |
||
| 53 | * @var float |
||
| 54 | */ |
||
| 55 | public $rdtaxisc; |
||
| 56 | /** |
||
| 57 | * @var float |
||
| 58 | */ |
||
| 59 | public $rdtaxlegaltip; |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @var float |
||
| 63 | */ |
||
| 64 | public $totalplustaxes; |
||
| 65 | |||
| 66 | public function clear(): Closure |
||
| 67 | { |
||
| 68 | return function () { |
||
| 69 | $this->rdtaxisc = 0.0; |
||
| 70 | $this->rdtaxcdt = 0.0; |
||
| 71 | $this->rdtaxlegaltip = 0.0; |
||
| 72 | $this->rdtaxfirstplate = 0.0; |
||
| 73 | $this->rdtaxcodisc = null; |
||
| 74 | $this->rdtaxcodcdt = null; |
||
| 75 | $this->rdtaxcodlegaltip = null; |
||
| 76 | $this->rdtaxcodfirstplate = null; |
||
| 77 | }; |
||
| 78 | } |
||
| 79 | |||
| 80 | } |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths