Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added composer.json. #2

Merged
merged 1 commit into from
Jul 18, 2013
Merged

Added composer.json. #2

merged 1 commit into from
Jul 18, 2013

Conversation

phansys
Copy link
Contributor

@phansys phansys commented Jul 17, 2013

Added composer.json to allow library install and dependency management with Composer.
To achieve this, please register the repo in Packagist.

ekzobrain added a commit that referenced this pull request Jul 18, 2013
@ekzobrain ekzobrain merged commit 36ae1a0 into JamesHeinrich:master Jul 18, 2013
@ekzobrain
Copy link
Contributor

Thanks, accepted.

@JamesHeinrich
Copy link
Owner

I believe I have done so now. Let me know if it's not working as expected.

@phansys
Copy link
Contributor Author

phansys commented Oct 18, 2013

Great @JamesHeinrich :)

$ composer require james-heinrich/getid3 dev-master
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing james-heinrich/getid3 (dev-master 7ca8dda)
    Cloning 7ca8ddaa8d94caa3185552ad864b81ff0d93fbaf

james-heinrich/getid3 suggests installing ext-rar (RAR extension is required for RAR archive module.)
Writing lock file
Generating autoload files

jrfnl added a commit to jrfnl/getID3 that referenced this pull request Aug 22, 2021
The `getid3_lib::mb_basename()` method calls the PHP native `basename()` function, the second parameter of which is the _optional_ `$suffix` parameter which expects a `string`.

A parameter being optional, however, does not automatically make it nullable.

As of PHP 8.1, passing `null` to a non-nullable PHP native function will generate a deprecation notice.
In this case, this function call yielded a `basename(): Passing null to parameter JamesHeinrich#2 ($suffix) of type string is deprecated` notice.

Changing the `null` default value for the `$suffix` parameter to an empty string fixes this for _most_ cases without BC-break.
Leaving the deprecation warning in place for when calls to the function would pass `null` for the `$suffix` so they can adjust their function call.

Refs:
* https://www.php.net/manual/en/function.basename.php
* https://wiki.php.net/rfc/deprecate_null_to_scalar_internal_arg
@gandalf458 gandalf458 mentioned this pull request Nov 27, 2021
StudioMaX added a commit to StudioMaX/getID3 that referenced this pull request Dec 28, 2021
avdeijk added a commit to avdeijk/getID3 that referenced this pull request Dec 13, 2022
…on notices for preg_match(): Passing null to parameter JamesHeinrich#2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants